Skip to main content

Class: ParserBuilder

Constructors

constructor

new ParserBuilder()

Methods

registerInfix

registerInfix(tokenType, parselet): ParserBuilder

Parameters

NameType
tokenTypestring
parseletInfixParselet

Returns

ParserBuilder

Defined in

packages/core/src/fhirlexer/parse.ts:47


registerPrefix

registerPrefix(tokenType, parselet): ParserBuilder

Parameters

NameType
tokenTypestring
parseletPrefixParselet

Returns

ParserBuilder

Defined in

packages/core/src/fhirlexer/parse.ts:52


prefix

prefix(tokenType, precedence, builder): ParserBuilder

Parameters

NameType
tokenTypestring
precedencenumber
builder(token: Token, right: Atom) => Atom

Returns

ParserBuilder

Defined in

packages/core/src/fhirlexer/parse.ts:57


infixLeft

infixLeft(tokenType, precedence, builder): ParserBuilder

Parameters

NameType
tokenTypestring
precedencenumber
builder(left: Atom, token: Token, right: Atom) => Atom

Returns

ParserBuilder

Defined in

packages/core/src/fhirlexer/parse.ts:66


construct

construct(input): Parser

Parameters

NameType
inputToken[]

Returns

Parser

Defined in

packages/core/src/fhirlexer/parse.ts:80