public static void Main(string[] args) { try { IDLLexer lexer = new IDLLexer(new ByteBuffer(Console.OpenStandardInput())); IDLParser parser = new IDLParser(lexer); parser.specification(); } catch(Exception e) { Console.Error.WriteLine("exception: "+e); } }
public static void Main(string[] args) { try { IDLLexer lexer = new IDLLexer(new ByteBuffer(Console.OpenStandardInput())); IDLParser parser = new IDLParser(lexer); parser.specification(); } catch (Exception e) { Console.Error.WriteLine("exception: " + e); } }
private void processFile(MetaDataGenerator generator, string file) { Console.WriteLine("processing file: " + file); Trace.WriteLine(""); MemoryStream source = Preprocess(file); // preprocess the file IDLParser parser = new IDLParser(source); Trace.WriteLine("parsing file: " + file); ASTspecification spec = parser.specification(); Trace.WriteLine(parser.getSymbolTable()); // now parsed representation can be visited with the visitors generator.InitalizeForSource(parser.getSymbolTable()); spec.jjtAccept(generator, null); Trace.WriteLine(""); }
protected Assembly CreateIdl(Stream source, AssemblyName targetName, bool anyToAnyContainerMapping, bool makeInterfaceDisposable, ArrayList refAssemblies) { IDLParser parser = new IDLParser(source); ASTspecification spec = parser.specification(); // now parsed representation can be visited with the visitors MetaDataGenerator generator = new MetaDataGenerator(targetName, ".", refAssemblies); generator.MapAnyToAnyContainer = anyToAnyContainerMapping; if (makeInterfaceDisposable) { generator.InheritedInterface = typeof(System.IDisposable); } generator.InitalizeForSource(parser.getSymbolTable()); spec.jjtAccept(generator, null); Assembly result = generator.ResultAssembly; return(result); }
public ASTunion_type(IDLParser p, int id) : base(p, id) { }
public ASTvalue(IDLParser p, int id) : base(p, id) { }
public ASTfloating_pt_type_longdouble(IDLParser p, int id) : base(p, id) { }
public ASTobject_type(IDLParser p, int id) : base(p, id) { }
public ASTfixed_pt_type(IDLParser p, int id) : base(p, id) { }
public ASTsigned_int(IDLParser p, int id) : base(p, id) { }
public ASTvalue_forward_decl(IDLParser p, int id) : base(p, id) { }
public ASTmodule(IDLParser p, int id) : base(p, id) { }
public ASTmember_list(IDLParser p, int id) : base(p, id) { }
/** * Constructor for ASTNodeWithIdent. * @param p * @param i */ public SimpleNodeWithIdent(IDLParser p, int i) : base(p, i) { }
public ASTtype_spec(IDLParser p, int id) : base(p, id) { }
public ASTstruct_type(IDLParser p, int id) : base(p, id) { }
public ASTexport(IDLParser p, int id) : base(p, id) { }
public ASTinit_param_delcs(IDLParser p, int id) : base(p, id) { }
public ASTinit_param_attribute(IDLParser p, int id) : base(p, id) { }
public ASTadd_expr(IDLParser p, int id) : base(p, id) { }
public ASTvalue_base_inheritance_spec(IDLParser p, int id) : base(p, id) { }
public ASTsimple_declarator(IDLParser p, int id) : base(p, id) { }
public ASTfixed_array_size(IDLParser p, int id) : base(p, id) { }
public ASTarray_declarator(IDLParser p, int id) : base(p, id) { }
public ASTwide_char_type(IDLParser p, int id) : base(p, id) { }
public ASTxor_expr(IDLParser p, int id) : base(p, id) { }
public ASTinterface_body(IDLParser p, int id) : base(p, id) { }
public ASTattr_dcl(IDLParser p, int id) : base(p, id) { }
public ASTcomplex_declarator(IDLParser p, int id) : base(p, id) { }
public ASTtype_declarator(IDLParser p, int id) : base(p, id) { }
public ASTswitch_body(IDLParser p, int id) : base(p, id) { }