Exemple #1
0
 public static void ThrowIfNot(this LexerNode node, LexerTokens token)
 {
     if (node.Token != token)
     {
         throw new SyntaxException(node);
     }
 }
Exemple #2
0
 public LexerNode(LexerTokens token, string value, TextPointer start)
 {
     System.Diagnostics.Contracts.Contract.Ensures(start == null);
     Token        = token;
     Value        = value;
     StartPointer = start;
 }