コード例 #1
0
ファイル: Program.cs プロジェクト: emperorstarfinder/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());
        }
コード例 #2
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());
        }