Hi all,

Is it possible to match any sort of wildcards in Lemon? I'd like to accept and 
capture any extra input at the end of a string to be parsed.

What I'm hoping to achieve is something like this:

start ::= first second THIRD everything_else.
first ::= code_goes_here.
second ::= code_goes_here.
everything_else ::= /* match everything up to the end of the input */


The only thing I can think of so far is to list all possible terminals in a 
series like:
everything_else ::= .
everthing_else ::= everything_else ITEM_ONE
everthing_else ::= everything_else ITEM_TWO

but this seems inelegant, particularly as the number of terminals grows.

Worst case I can fall back to splitting the input before parsing.

Does anyone have any suggestions?

Thank you.

Ben
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to