|Converting SQL89 YACC rules to Parse::RecDescent Tompkins@TransWebTools.com (2003-07-03)|
|From:||Tompkins@TransWebTools.com (Terry Tompkins)|
|Date:||3 Jul 2003 23:58:29 -0400|
|Posted-Date:||03 Jul 2003 23:58:29 EDT|
I'm having a left-recursion problem converting an LALR (YACC) spec to
LL (Parse::RecDescent). I've read a couple articles on eliminating
left recursion, and they have helped with the simpler rules. However,
I have one rule that is giving me trouble. Here is the rule with one
of its dependencies:
search_condition /OR/i search_condition
| search_condition /AND/i search_condition
| /NOT/i search_condition
| '(' search_condition ')'
I'm assuming I would need to supply additional subrules. Any
Return to the
Search the comp.compilers archives again.