You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm afraid I don't exactly understand what you're trying to do.
Moo doesn't choose the regexp with the longest match -- indeed, because it combines all the regexps into a single JS regexp for speed, it can't do this. Instead, the first regexp will match: earlier rules take precedence.
It's hard to provide a solid recommendation without knowing more about the language you're trying to parse. But usually people seem to solve problems that sound like this by:
Hi,
this is more of a question than an issue about Moo, so here goes:
I have the following lexer:
On input
moo
, this will return:On input
moo*
I would want it to return a singlePREFIXTERM
, but I'm getting this instead:How can I get it to go for a single PREFIXTERM?
The text was updated successfully, but these errors were encountered: