FormatParser class
Represents a parser for format expressions in operators
Constructors
Section titled “Constructors”constructor
Section titled “constructor”⊕ new FormatParser(format: string
): FormatParser
Parameters:
Section titled “Parameters:”- format:
string
Public Methods
Section titled “Public Methods”getToken
Section titled “getToken”Returns current token
▸ getToken(): FormatToken
Returns FormatToken
Scans the source and gets the next token
▸ next(): boolean
Returns boolean
Parses all source string passed in constructor and returns the list of tokens
▸ parse(): FormatToken[]
Returns FormatToken[]
skipSpaces
Section titled “skipSpaces”Skips all spcaes till the beginning of next token
▸ skipSpaces(): void
Returns void
Starts parsing of the format string passed in the parameter
▸ start(format: string
): void
Parameters:
Section titled “Parameters:”- format:
string
-
Returns void