Add comments to the input file

This commit is contained in:
Robin Jadoul 2017-01-28 11:56:27 +01:00
parent ce88f93ca3
commit ecc187c51b
3 changed files with 5 additions and 1 deletions

View File

@ -106,6 +106,8 @@ We are building an LALR(1) parser, with replacement rules, both starting from th
Conventionally, terminals are all caps, while variables are lowercase. Conventionally, terminals are all caps, while variables are lowercase.
Comments are from a `#` to the end of the line.
### Using the parser ### Using the parser

View File

@ -31,6 +31,8 @@ We are building an LALR(1) parser, with replacement rules, both starting from th
Conventionally, terminals are all caps, while variables are lowercase. Conventionally, terminals are all caps, while variables are lowercase.
Comments are from a `#` to the end of the line.
AUTHORS AUTHORS
------- -------

View File

@ -20,4 +20,4 @@ RULENAME = [_a-zA-Z][_a-zA-Z0-9]*
LBRACKET = \[ LBRACKET = \[
RBRACKET = \] RBRACKET = \]
COMMA = , COMMA = ,
ignore = \t| |\n|\r ignore = \t| |\n|\r|#.*