> Le 8 sept. 2018 à 07:26, Martin Alexander Neumann <[email protected]> a 
> écrit :
> 
> Hi Anand,
> 
> right, please also have a look at the manual on YYMAXDEPTH[1].
> 
> And "you should always use left recursion, because it can parse a
> sequence of any number of elements with bounded stack space."[2]
> 
> (Sure, when implementing "calculators", using right recursion may make
> your life easier with right-associative operators.)

Yes, you should never feel forbidden to use right recursion.
The manual is trying to say « prefer left recursion », not
« stay away from right recursion ».
_______________________________________________
[email protected] https://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to