/// <summary> /// Initializes a new instance of a Grammar, initially empty. /// </summary> /// <param name="tokenRegistry">The token registry to use to verify referenced tokens types are defined.</param> public Grammar(TokenRegistry tokenRegistry) { this.tokenRegistry = tokenRegistry; this.expressionLookup = new Dictionary <string, ExpressionDefinition>(); }
public Tokenizer(TokenRegistry registry, string commandText) { this.registry = registry; this.commandText = commandText; }