hfoffani / pddl-lib

A PDDL library that parse PDDL files and provides a very simple interface to interact with domain-problems.
Apache License 2.0
82 stars 20 forks source link

Ignoring comments on the last line #19

Open PCfVW opened 6 years ago

PCfVW commented 6 years ago

It seems that the current grammar (pddl.g4) cannot handle comments on the last line of a pddl file.

If one newline is added to the pddl file (after the comment on the last line) then no syntax error is generated.

I suggest the following to correct this:

LINE_COMMENT : ';' (~[\r\n]*) ('\r\n'|'\r'|'\n'|EOF) -> skip ;