public static NodeBase[] Parse(BlockBase parent, Tokenizer token) { var parser = Parser.Create(token, parent); var ret = parser.Parse(); if (token.CanRead) ret = null; return ret; }
public static Parser Create(Tokenizer tokenizer, BlockBase parent) { var ret = new Parser(); ret.tokenizer = tokenizer; ret.parent = parent; ret.InitOperator(); return ret; }
public static Tokenizer New(string file, string src) { var ret = new Tokenizer(); ret.file = file; ret.Source = src; return ret; }