static void Main(string[] args) { AntlrInputStream inputStream = new AntlrInputStream(Console.In); Combined1Lexer lexer = new Combined1Lexer(inputStream); CommonTokenStream bts = new CommonTokenStream(lexer); bts.Fill(); IToken tk = lexer.NextToken(); Combined1Parser p = new Combined1Parser(bts); p.start(); while (1 == 1) { } }
static void Main(string[] args) { String c = ""; c = Console.ReadLine(); AntlrInputStream inputStream = new AntlrInputStream(c); Combined1Lexer lexer = new Combined1Lexer(inputStream); CommonTokenStream bts = new CommonTokenStream(lexer); bts.Fill(); IToken tk = lexer.NextToken(); tk.GetType(); Combined1Parser p = new Combined1Parser(bts); p.start(); while (1 == 1) { } }