public Parser(Lexer lexer) { this.lexer = lexer; this.elements = new List <Element>(); }
public Parser(Lexer lexer) { this.lexer = lexer; this.elements = new List<Token>(); }
public static Tmpl Parser(string name, string data) { Lexer lexer = new Lexer(data); Parser _parser = new Parser(lexer); _parser.Parse(); return new Tmpl(name, _parser.CreateHierarchy()); }