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
What should the semantics of And be? If both parsers consume different parts of the input, Sprache will have to run both parsers, stop if any of them returns an error, and then decide for either the left or right one for continuation. So there actually exist two forms, AndLeft and AndRight.
Not already exists in Sprache, but it will return a null result, but you could use Except as alternative, just need to specify a base case parser (any character or something like that).
Your Check signature cannot work, as there is no input to evaluate in the arguments. Your ParseCheck can be implemented by using Where and an appropriate base case parser (e.g. from cs in Parse.AnyChar.Many() from _ in Parse.End() select new string(cs.ToArray()))).
is it possible to create a
And
andXand
method to go along withOr
andXor
?if so can it be implemented?
and if it can't be implemented how would I go about making a check method so I can easily?
The text was updated successfully, but these errors were encountered: