2 Mar 2010 12:19
Re: Yecc bug (possibly related to mutually recursive rules)
Hans Bolinder <hans.bolinder <at> ericsson.com>
2010-03-02 11:19:54 GMT
2010-03-02 11:19:54 GMT
[Manolis Papadakis:]
> This grammar file:
>
> Nonterminals elem seq.
> Terminals 'foo' 'bar' ':'.
> Rootsymbol elem.
> elem -> 'foo'.
> elem -> 'bar'.
> elem -> seq.
> seq -> elem.
> seq -> seq ':' elem.
> % or seq -> elem ':' seq.
>
> when fed to yecc (git version) produces this error:
>
> 2> yecc:file("bug.yrl").
...
> ** exception exit: function_clause
> in function yecc:find_reduce_reduce/2
> called as
> yecc:find_reduce_reduce([accept,{reduce,10,seq,1,{0,none},undefined}],
...
Thanks. The bug will be fixed in R14A.
In the meantime, to get the error report, you can add a dummy rule:
Rootsymbol RS.
RS -> elem.
(Continue reading)
RSS Feed