Defines the parser state base type used by this module.
new Parser(): Parser
Returns:
Parserparse(source, state): ParserState
Attributes
source:
string | Buffer<ArrayBufferLike> | PreparsedAstthe source to parse
state:
ParserStatethe parser state
Returns:
ParserStatethe parser state
Parses the provided source and updates the parser state.