Exemplo n.º 1
0
        public void BindMembers(dynamic obj)
        {
            Type type = obj.GetType();

            if (!type.IsSubclassOf(typeof(CrossCompileObject)))
            {
                throw new CrossCompileException("Invalid base class inheritance! Class does not derive from CrossCompileObject!");
            }

            // TODO: change to attribute language reference and create a parser at runtime
            Parser p = new Parser(new Scanner(Source));

            p.BindingObject(obj);
            p.Parse();
        }
Exemplo n.º 2
0
 public Modifiers(Parser parser)
 {
     this.parser = parser;
 }