On this page

Defines the parser state base type used by this module.

new Parser(): Parser
Returns:Parser
parse(source, state): ParserState
Attributes
source:string | Buffer<ArrayBufferLike> | PreparsedAst
the source to parse
the parser state
Returns:ParserState
the parser state

Parses the provided source and updates the parser state.