public FailedParseResult(IEnumerable <Token.Type> expectedTokens, Token.Match foundToken, string help) { ExpectedTokens = expectedTokens; FoundToken = foundToken; Help = help; Result = default; }
public FailedParseResult(Token.Type expected, Token.Match found, string help) : this(new[] { expected }, found, help) { }
public static Token.Match Next(this IEnumerator <Token.Match> list, Token.Match def) => !list.MoveNext() ? def : list.Current;