Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

§Classes

TokenError
TokenRangeError

§Functions

alt
alt_sc
amb
apply
betterError
buildLexer
combine
err
errd
expectEOF
expectSingleResult
extractByPositionRange
extractByTokenRange
fail
kleft
kmid
kright
lazy
list
list_n
list_sc
lrec
lrec_sc
makeParserModule
nil
opt
opt_sc
rep
rep_n
rep_sc
repr
resultOrError
rule
seq
str
succ
tok
unableToConsumeToken

§Interfaces

FailedParser
FailedParserOutput
Lexer
ParseError
Parser
ParseResult

A ParseResult has to parts: result: The result object of this try. nextToken: The first unconsumed token.

Rule
SucceededParserOutput

A ParserOutput always has candidates and an error. If successful===true, it means that the candidates field is valid, even when it is empty. If successful===false, error will be not null The error field stores the farest error that has even been seen, even when tokens are successfully parsed.

Token
TokenPosition

§Type Aliases

ParserOutput