Example #1
0
File: Main.cs Project: 0xb1dd1e/boo
 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);
   }
 }
Example #2
0
 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);
     }
 }
Example #3
0
        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("");
        }
Example #4
0
        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);
        }
Example #5
0
 public ASTunion_type(IDLParser p, int id)
     : base(p, id)
 {
 }
Example #6
0
 public ASTvalue(IDLParser p, int id) : base(p, id)
 {
 }
 public ASTfloating_pt_type_longdouble(IDLParser p, int id) : base(p, id)
 {
 }
Example #8
0
 public ASTobject_type(IDLParser p, int id) : base(p, id)
 {
 }
Example #9
0
 public ASTfixed_pt_type(IDLParser p, int id) : base(p, id)
 {
 }
Example #10
0
 public ASTsigned_int(IDLParser p, int id) : base(p, id)
 {
 }
 public ASTvalue_forward_decl(IDLParser p, int id) : base(p, id)
 {
 }
Example #12
0
 public ASTmodule(IDLParser p, int id) : base(p, id)
 {
 }
Example #13
0
 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)
 {
 }
Example #15
0
 public ASTtype_spec(IDLParser p, int id) : base(p, id) {
 }
Example #16
0
 public ASTstruct_type(IDLParser p, int id) : base(p, id)
 {
 }
Example #17
0
 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)
 {
 }
Example #20
0
 public ASTadd_expr(IDLParser p, int id) : base(p, id)
 {
 }
Example #21
0
 public ASTvalue_base_inheritance_spec(IDLParser p, int id) : base(p, id)
 {
 }
Example #22
0
 public ASTsimple_declarator(IDLParser p, int id) : base(p, id)
 {
 }
Example #23
0
 public ASTfixed_array_size(IDLParser p, int id) : base(p, id)
 {
 }
Example #24
0
 public ASTarray_declarator(IDLParser p, int id) : base(p, id)
 {
 }
Example #25
0
 public ASTwide_char_type(IDLParser p, int id) : base(p, id)
 {
 }
Example #26
0
 public ASTxor_expr(IDLParser p, int id) : base(p, id)
 {
 }
Example #27
0
 public ASTinterface_body(IDLParser p, int id) : base(p, id)
 {
 }
Example #28
0
 public ASTattr_dcl(IDLParser p, int id) : base(p, id)
 {
 }
 public ASTcomplex_declarator(IDLParser p, int id) : base(p, id)
 {
 }
Example #30
0
 public ASTtype_declarator(IDLParser p, int id) : base(p, id)
 {
 }
Example #31
0
 public ASTswitch_body(IDLParser p, int id) : base(p, id)
 {
 }