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've found this article on Stack Overflow which doesn't seem to help enable escaping non-escaped characters, in particular, parenthesis. The case I'm looking for here is to be able to parse Any Character until a set of characters (such as parenthesis and comma "),", and/or parenthesis and end of string.
The way our parser currently works, we use Parse.AnyChar.Except( '(', ')' ) I think it'd be more helpful to be able to say Until( "),").Or(")" + EndOfString)
Is there a current implementation on how to do this, or can this be added?
The text was updated successfully, but these errors were encountered:
is roughly the kind of thing you're looking for. There's something a bit awkward about constructing the grammar this way, though - it's rare for a parser to have to "care" about what comes after its matched input. In particular, an expression parser should usually take care of matching parentheses etc. --- Is the grammar something you have control over, or are you parsing the output of some other system that produces irregular strings?
I've found this article on Stack Overflow which doesn't seem to help enable escaping non-escaped characters, in particular, parenthesis. The case I'm looking for here is to be able to parse Any Character until a set of characters (such as parenthesis and comma "),", and/or parenthesis and end of string.
My test case:
where=and(eq(someString,Call Trace (*54)),eq(someString,Call Trace (*54)))
The way our parser currently works, we use
Parse.AnyChar.Except( '(', ')' )
I think it'd be more helpful to be able to sayUntil( "),").Or(")" + EndOfString)
Is there a current implementation on how to do this, or can this be added?
The text was updated successfully, but these errors were encountered: