示例#1
0
文件: Block.cs 项目: 7shi/LLPML
 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;
 }
示例#2
0
文件: Parser.cs 项目: 7shi/LLPML
 public static Parser Create(Tokenizer tokenizer, BlockBase parent)
 {
     var ret = new Parser();
     ret.tokenizer = tokenizer;
     ret.parent = parent;
     ret.InitOperator();
     return ret;
 }
示例#3
0
文件: Tokenizer.cs 项目: 7shi/LLPML
 public static Tokenizer New(string file, string src)
 {
     var ret = new Tokenizer();
     ret.file = file;
     ret.Source = src;
     return ret;
 }