Ralf Junker <[EMAIL PROTECTED]> wrote: > I am writing to ask for help about how to solve The Lemon parser conflicts. > > As part of a larger grammar, I am need to implement this regular expression > in Lemon: > > (.+|'.+')+ > > I tried lots of grammars, but all of them generated Lemon warnings. > > Maybe someone could have a look at the grammar below and let me know > how the conflicts can be solved, and why they are generated in the > first place? >
doc ::= inline_list. // One ore more CHARs. chars ::= CHAR. chars ::= chars CHAR. // Any sequence of just CHARs and 'CHARs' (surrounded by apostrophes). inline ::= CHAR. inline ::= APOS chars APOS. // The repeat. This causes conflicts. Isn't it allowed? Workarounds? inline_list ::= inline. inline_list ::= inline_list inline. -- D. Richard Hipp <[EMAIL PROTECTED]> ----------------------------------------------------------------------------- To unsubscribe, send email to [EMAIL PROTECTED] -----------------------------------------------------------------------------