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