CRONOS-19 / lalr-scm

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

Feature request: allow operator precedence for error #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
One thing that Bison lets you do but that doesn't work in lalr-scm is
setting the associativity of the special 'error' token (via, e.g., "%left
error").  

lalr-scm doesn't complain if you do this -- but it doesn't work, either,
because the initial contents of the-terminals/prec contains the entry
'(error none 0), which will always match before a user-specified
associativity for errors.  

I've modified my copy of the code so that it only adds the "none" entry if
the user fails to specify associativity explicitly.

Original issue reported on code.google.com by jool...@gmail.com on 3 Apr 2009 at 9:33