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