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
Some situations could get tricky, so this should back off to a regular ordered choice if it's not clear:
A <- "abc" / "d" / "aaa"
becomes
'd' >>> "d"
'a' >>> "abc" / "aaa"
This is basically computing "first sets". The Dispatch() operator function (or whatever it's called) would just be an optimization and wouldn't necessarily get PEG notation associated with it.
The text was updated successfully, but these errors were encountered:
Add an operator that computes the first character of each alternative of a Choice and then does an immediate jump when one is unambiguous.
E.g.,
Could be a dispatch like:
Some situations could get tricky, so this should back off to a regular ordered choice if it's not clear:
becomes
This is basically computing "first sets". The Dispatch() operator function (or whatever it's called) would just be an optimization and wouldn't necessarily get PEG notation associated with it.
The text was updated successfully, but these errors were encountered: