Re: [REQUEST] Infinite recursion warning

2013-12-09 Thread Akim Demaille
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

Change a reduce into Shift?

2013-12-09 Thread Adam Smalin
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

[REQUEST] Infinite recursion warning

2013-12-09 Thread Valentin Tolmer
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 ___