Skip to content

Commit

Permalink
#155: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Nov 11, 2020
1 parent 8b1abed commit 73d91a2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
7 changes: 6 additions & 1 deletion eo-compiler/src/main/antlr4/org/eolang/compiler/Program.g4
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ metas

objects
:
(object EOL EOL?)+
(
(COMMENT EOL)*
object
EOL
EOL?
)+
;

object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,17 @@ xsls: []
tests:
- /program/objects[count(o)=5]
eo: |
# The purpose of this test case is to make
# sure all possible syntax scenarios can
# be parsed by the ANTLR
+alias Test Test
+foo
+bar Some text
500.43 > one
# This is just a simple string
"Hello, world!" > !hello
[x] > first
Expand Down

0 comments on commit 73d91a2

Please sign in to comment.