public static bool MatchOptionToken(
        this ArgsTokenizer tokenizer)
    {
        if (tokenizer.Peek() is OptionName)
        {
            return(true);
        }

        return(false);
    }
Exemple #2
0
    ///

    public static Argument?MaybeNext(
        this ArgsTokenizer tokenizer)
    {
        var next = tokenizer.Peek();

        if (next != null)
        {
            tokenizer.Position++;
        }

        return(next);
    }