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