示例#1
0
 private void RegisterTokenToRegistry(ref TokenRegistry tokenRegistry, string token)
 {
     if (!String.IsNullOrEmpty(token))
     {
         tokenRegistry.RegisterToken(token);
     }
 }
示例#2
0
 public Lexer(string sourceString)
 {
     this.sourceString = sourceString;
     this.registry     = new TokenRegistry();
 }
示例#3
0
 public Parser(TokenRegistry tokens)
 {
     this.tokens  = tokens;
     this.symbols = new SymbolRegistry();
     this.ast     = new AST.AST();
 }