Constructor AnsiStreamParser
- Namespace
- Microlithix.Text.Ansi
- Assembly
- AnsiParser.dll
AnsiStreamParser()
Creates a new AnsiStreamParser instance with default settings.
public AnsiStreamParser()
Remarks
If you use this constructor, you will need to call the Parse(char, Action<IAnsiStreamParserElement>) overload that accepts a callback function in order to receive output from the parser.
AnsiStreamParser(AnsiParserSettings)
Creates a new AnsiStreamParser instance with specified settings.
public AnsiStreamParser(AnsiParserSettings settings)
Parameters
settings
AnsiParserSettingsAn AnsiParserSettings record for configuring the behavior of the parser.
Remarks
If you use this constructor, you will need to call the Parse(char, Action<IAnsiStreamParserElement>) overload that accepts a callback function in order to receive output from the parser.
AnsiStreamParser(Action<IAnsiStreamParserElement>)
Creates a new AnsiStreamParser instance with default settings and a specified callback function for receiving the parsed elements.
public AnsiStreamParser(Action<IAnsiStreamParserElement> callback)
Parameters
callback
Action<IAnsiStreamParserElement>A function that will be called for each parsed element.
AnsiStreamParser(AnsiParserSettings, Action<IAnsiStreamParserElement>)
Creates a new AnsiStreamParser instance with specified settings and a specified callback function for receiving the parsed elements.
public AnsiStreamParser(AnsiParserSettings settings, Action<IAnsiStreamParserElement> callback)
Parameters
settings
AnsiParserSettingsAn AnsiParserSettings record for configuring the behavior of the parser.
callback
Action<IAnsiStreamParserElement>A function that will be called for each parsed element.