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()); }