Class: ParserBuilder
Constructors
constructor
• new ParserBuilder()
Methods
registerInfix
▸ registerInfix(tokenType
, parselet
): ParserBuilder
Parameters
Name | Type |
---|---|
tokenType | string |
parselet | InfixParselet |
Returns
Defined in
packages/core/src/fhirlexer/parse.ts:47
registerPrefix
▸ registerPrefix(tokenType
, parselet
): ParserBuilder
Parameters
Name | Type |
---|---|
tokenType | string |
parselet | PrefixParselet |
Returns
Defined in
packages/core/src/fhirlexer/parse.ts:52
prefix
▸ prefix(tokenType
, precedence
, builder
): ParserBuilder
Parameters
Name | Type |
---|---|
tokenType | string |
precedence | number |
builder | (token : Token , right : Atom ) => Atom |
Returns
Defined in
packages/core/src/fhirlexer/parse.ts:57
infixLeft
▸ infixLeft(tokenType
, precedence
, builder
): ParserBuilder
Parameters
Name | Type |
---|---|
tokenType | string |
precedence | number |
builder | (left : Atom , token : Token , right : Atom ) => Atom |
Returns
Defined in
packages/core/src/fhirlexer/parse.ts:66
construct
▸ construct(input
): Parser
Parameters
Name | Type |
---|---|
input | Token [] |
Returns
Defined in
packages/core/src/fhirlexer/parse.ts:80