Joe Anonimist <[email protected]> writes:
> Hello, > > > I am trying to build a simple arithmetic expression evaluator using > Comparse. I have got to the part of the grammar that looks like this > > > > > <MultExpr> ::= <MultExpr> '*' <UnaryExpr> > | <MultExpr> '/' <UnaryExpr> > | <UnaryExpr> > > > ie it is recursive. Here is my code so far: > Hi, Yes, it's recursive, and more specifically it's left-recursive. Perhaps this will help you: https://en.wikipedia.org/wiki/Left_recursion _______________________________________________ Chicken-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/chicken-users
