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
Why not use some singleton internal object as result of parsing instead of null for indicate match failures? Then in actions you free return any value (including null).
The text was updated successfully, but these errors were encountered:
Or a wrapper type. In Pegasus, I used a type called ParseResult. It has a property, value which can be null, but you can also return a null parse result to indicate parse failure. Then, labeled expressions and repetitions simply unwrap the value.
Why not use some singleton internal object as result of parsing instead of
null
for indicate match failures? Then in actions you free return any value (includingnull
).The text was updated successfully, but these errors were encountered: