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