Table of Contents

Elements

Both AnsiStreamParser and AnsiStringParser parse character streams and strings into elements holding a structured representation of the input. All of the element types are defined in the Microlithix.Text.Ansi.Element namespace and each implements one or both of the IAnsiStreamParserElement and IAnsiStringParserElement interfaces.

Elements implementing the IAnsiStreamParserElement interface are produced by instances of AnsiStreamParser, while elements implementing the IAnsiStringParserElement interface are produced by instances of AnsiStringParser.

Here is a summary table showing the different types of elements that can be produced:

Element Type IAnsiStreamParserElement IAnsiStringParserElement
AnsiPrintableChar
AnsiPrintableString
AnsiSolitaryControlCode
AnsiEscapeSequence
AnsiControlSequence
AnsiPrivateControlSequence
AnsiControlStringInitiator
AnsiControlStringChar
AnsiControlStringTerminator
AnsiControlString