示例#1
0
        private static void ApiGen(string protoFile, string shimTemplate)
        {
            ANTLRFileStream input = new ANTLRFileStream(protoFile);

            FuncProtoToShimLexer lex = new FuncProtoToShimLexer(input);
            CommonTokenStream tokens = new CommonTokenStream(lex);
            FuncProtoToShimParser parser = new FuncProtoToShimParser(shimTemplate, tokens);
            parser.TraceDestination = Console.Error;
            parser.list();

            System.Console.WriteLine(parser.ToISystemAPI());
        }
示例#2
0
文件: Program.cs 项目: vinzenz/phlox
        private static void ApiGen(string protoFile, string shimTemplate)
        {
            ANTLRFileStream input = new ANTLRFileStream(protoFile);

            FuncProtoToShimLexer  lex    = new FuncProtoToShimLexer(input);
            CommonTokenStream     tokens = new CommonTokenStream(lex);
            FuncProtoToShimParser parser = new FuncProtoToShimParser(shimTemplate, tokens);

            parser.TraceDestination = Console.Error;
            parser.list();

            System.Console.WriteLine(parser.ToISystemAPI());
        }