Adds the specified symbol to the collection. Syntax Parameters symbol The symbol to add to the collection.isExitSymbol Indicates whether the symbol should be an exit symbol for the lexer state. Exceptions Exception Description System.InvalidOperationException Occurs when the IsMutable value of the owning Grammar i...
Adds the specified symbol to the collection. Overload List
Clears all symbols from the collection. Syntax Exceptions Exception Description System.InvalidOperationException Occurs when the IsMutable value of the owning Grammar is False.
Returns a value indicating whether a TerminalSymbol with the specified name exists within the collection. Syntax Parameters name The name of the symbol to find in the collection. Exceptions Exception Description System.ArgumentNullException Occurs when name is null or empty.
Returns a value indicating whether the specified TerminalSymbol exists within the collection. Syntax Parameters symbol The symbol to find in the collection. Exceptions Exception Description System.ArgumentNullException Occurs when symbol is null.
Returns a value indicating whether the specified TerminalSymbol exists within the collection. Overload List
Gets the number of symbols in the collection. Syntax
Gets the index of the specified symbol or -1 if it doesnt exist. Syntax Parameters symbol Return Value The zero-based index of the symbol in the collection or -1 if it doesnt exist. Exceptions Exception Description System.ArgumentNullException Occurs when symbol is null.
Inserts a new TerminalSymbol into the collection with the specified name. Syntax Parameters index The zero-based index at which to insert the symbol.name The Symbol.Name of the new symbol.value The value indicating the text which must be matched for the terminal symbol to be recognized within the text. If null, th...
Inserts the specified symbol into the collection. Syntax Parameters index The zero-based index at which to insert the symbol.symbol The symbol to add to the collection.isExitSymbol Indicates whether the symbol should be an exit symbol for the lexer state. Exceptions Exception Description System.InvalidOperationExc...