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! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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?
Beta Was this translation helpful? Give feedback.
All reactions