[erlang-bugs] Yecc Bug

Hans Bolinder hans.bolinder@REDACTED
Thu Mar 4 15:32:43 CET 2010


[Manolis Papadakis:]
> The parser produced by this grammar:
> 
> Nonterminals boolean command.
> Terminals '(' ')' if then else true and or skip while do.
> Rootsymbol command.
> Left 100 or.
> Left 200 and.
> boolean -> '(' boolean ')'.
> boolean -> 'true'.
> boolean -> boolean 'and' boolean.
> boolean -> boolean 'or' boolean.
> command -> 'skip'.
> command -> 'if' boolean 'then' command 'else' command.
> command -> 'while' boolean 'do' command.
> 
> crashes when encountering an 'or', but works fine with 'and'. Here is
> an example:

Thanks! The bug will be fixed in R14A.

Best regards,

Hans Bolinder, Erlang/OTP team, Ericsson


More information about the erlang-bugs mailing list