Replies: 1 comment 1 reply
|
Hi Łukasz, If you mean that the whole input being empty implies static readonly TokenListParser<XToken, XExpression> Filter =
Expression.OptionalOrDefault((XExpression)new XConstantExpression(true)).AtEnd();(Assuming your language is called Where I've encountered this, though, I tend to just check the input first with HTH! |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to write a parser for a filter string which can be translated into SQL WHERE clause or some client-side table filter. How to write a parser where an empty expression (meaning no filtering) is a valid part of the grammar?
All reactions