ParserList<T, TState> Class
Base class for a list of parsers.
public abstract class ParserList<T, TState> : OrderedList<T> where T : notnull, ParserBase<TState>- Inheritance
OrderedList<T>ParserList<T, TState>
Constructors
| Name | Description |
|---|---|
| ParserList(IEnumerable<T>) | Performs the parser list operation. |
ParserList(IEnumerable<T>)
ParserList.csPerforms the parser list operation.
protected ParserList(IEnumerable<T> parsersArg)Parameters
parsersArgIEnumerable<T>
Properties
| Name | Description |
|---|---|
| GlobalParsers | Gets the list of global parsers (that don't have any opening characters defined) |
| OpeningCharacters | Gets all the opening characters defined. |
GlobalParsers
ParserList.csGets the list of global parsers (that don't have any opening characters defined)
public T[]? GlobalParsers { get; }Property value
T[]?
OpeningCharacters
ParserList.csGets all the opening characters defined.
public char[] OpeningCharacters { get; }Property value
char[]
Methods
| Name | Description |
|---|---|
| GetParsersForOpeningCharacter(uint) | Gets the list of parsers valid for the specified opening character. |
| IndexOfOpeningCharacter(string, int, int) | Searches for an opening character from a registered parser in the specified string. |
GetParsersForOpeningCharacter(uint)
ParserList.csIndexOfOpeningCharacter(string, int, int)
ParserList.csSearches for an opening character from a registered parser in the specified string.