Open
Description
is it possible to create a And
and Xand
method to go along with Or
and Xor
?
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?
public static Parser<string> Not(this Parser<string> first) => ParseCheck(!Check(first));
public static Parser<string> And(this Parser<string> first, Parser<string> second) => ParseCheck(Check(first) && Check(second));
public static Parser<string> Or(this Parser<string> first, Parser<string> second) => ParseCheck(Check(first) || Check(second));
private Parser<string> ParseCheck(bool v)
{
throw new NotImplementedException();
}
private bool Check(Parser<string> first)
{
throw new NotImplementedException();
}
Metadata
Assignees
Labels
No labels