private static void Lex(string codePath, TextWriter output)
 {
     var lexer = new AdamantLexer(codePath);
     var tokens = new CommonTokenStream(lexer);
     tokens.Fill();
     foreach(var token in tokens.GetTokens())
         output.WriteLine(Format(token));
 }
 public AdamantParser(AdamantLexer lexer)
     : this(new CommonTokenStream(lexer))
 {
 }
Пример #3
0
 public AdamantParser(AdamantLexer lexer)
     : this(new CommonTokenStream(lexer))
 {
 }