Default Class
Definition
Section titled “Definition”The default string parser.
public class Default : IParserInheritance object
Implements IParser
Constructors
Section titled “Constructors”Default()
Section titled “Default()”public Default()Fields
Section titled “Fields”CustomProcessor
Section titled “CustomProcessor”Custom processor called before the build in command resolver.
public Func<string, string, ColoredGlyphAndEffect[], ICellSurface?, ParseCommandStacks?, ParseCommandBase?>? CustomProcessorRemarks
Section titled “Remarks”Signature is (“command”, “parameters”, existing glyphs, text surface, associated editor, command stacks).
Properties
Section titled “Properties”Variables
Section titled “Variables”A dictionary of variable resolution methods.
public Dictionary<string, Func<string>> Variables { get; }Methods
Section titled “Methods”Parse(ReadOnlySpan<char>, int, ICellSurface?, ParseCommandStacks?)
Section titled “Parse(ReadOnlySpan<char>, int, ICellSurface?, ParseCommandStacks?)”Creates a colored string by parsing commands embedded in the string.
public ColoredString Parse(ReadOnlySpan<char> value, int surfaceIndex = -1, ICellSurface? surface = null, ParseCommandStacks? initialBehaviors = null)Parameters
Section titled “Parameters”value ReadOnlySpan<char>
The string to parse.
surfaceIndex int
Index of where this string will be printed.
surface ICellSurface
The surface the string will be printed to.
initialBehaviors ParseCommandStacks
Any initial defaults.
Returns
Section titled “Returns”ColoredString
The finalized string.