CRONOS-19 / lalr-scm

Automatically exported from code.google.com/p/lalr-scm
0 stars 0 forks source link

Use of end-of-input token in rule causes infinite loop #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
If I refer to the end-of-input token (*eoi*) in a non-terminal definition,
e.g.:

(closing-brace-and-eoi (CLOSING-BRACE *eoi*) : '())

...the handling of this rule at runtime leads to an infinite loop.  Adding
some debugging statements shows that the parser is repeatedly attempting to
shift the *eoi* token.

Original issue reported on code.google.com by jool...@gmail.com on 26 Apr 2009 at 6:20

GoogleCodeExporter commented 8 years ago
*eoi* is a reserved token. It should not be used in a production. I'll fix the 
code
to check that.

Original comment by schemeway on 27 Apr 2009 at 1:30