Skip to content

FormatParser class

Represents a parser for format expressions in operators


⊕ new FormatParser(format: string): FormatParser

  • format: string


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[]


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

  • format: string -

Returns void