Example #1
0
 /// <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>();
 }
Example #2
0
 public Tokenizer(TokenRegistry registry, string commandText)
 {
     this.registry    = registry;
     this.commandText = commandText;
 }