Creates an instance of Parser.
The tokenizer containing the list of tokens to parse.
Optional parser configuration (defaults to DefaultParserOptions).
Parser configuration options.
List of parsed tokens of various types.
Static ReadonlyLoopMapping of special loop symbols to their respective loop counts.
StaticParseParses a string of code into a Parser instance with parsed tokens.
The input code to parse.
Optionaloptions: Partial<ParserOptions>Optional parser configuration.
A new instance of the Parser with parsed tokens.
StaticParse
The
Parserclass parses a series of tokens generated by theTokenizer. It supports parsing loops, blocks, files, and reserved tokens, while handling errors and file validation.