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(); }
public Modifiers(Parser parser) { this.parser = parser; }