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? Many thanks, Ralf ------ %left CHAR. // Any character, except for apostrophe. %left APOS. // Apostrophe only. doc ::= inline. // One ore more CHARs. chars ::= CHAR. chars ::= chars CHAR. // Any sequence of just CHARs and 'CHARs' (surrounded by apostrophes). inline ::= chars. inline ::= APOS chars APOS. // The repeat. This causes conflicts. Isn't it allowed? Workarounds? inline ::= inline inline. ----------------------------------------------------------------------------- To unsubscribe, send email to [EMAIL PROTECTED] -----------------------------------------------------------------------------