Le 10 déc. 2013 à 02:01, Valentin Tolmer a écrit :
> Hello,
>
> In the following grammar, the only word recognized is NIL, because of
> an infinite recursion.
>
> exp:
> NIL
> | NIL list
>
> list:
> NIL list
>
> It would be nice if Bison could raise a warning in case of an infinite
> recursi
My rules are similar to the below
body:
recursive-expr //rval = rval is here
| rval '=' rvalLoop
// | rval ',' rval //problem line
rvalLoop:
rval
| rvalLoop ',' rval
In my test file when I do "var = 5, 6" it works fine. When I uncomment the
problem line my parser breaks. The problem
Hello,
In the following grammar, the only word recognized is NIL, because of
an infinite recursion.
exp:
NIL
| NIL list
list:
NIL list
It would be nice if Bison could raise a warning in case of an infinite
recursion.
Thanks!
--
Valentin Tolmer
___