예제 #1
0
        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)
            {
            }
        }
예제 #2
0
        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)
            {
            }
        }