Skip to content

And and Xand to go along with Or and Xor? #146

Open
@Shadowblitz16

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions