Class: Parser

Hierarchy

  • Parser

Constructors

constructor

+ new Parser(liquid: Liquid): Parser

Defined in parser/parser.ts:13

Parameters:

Name Type
liquid Liquid

Returns: Parser

Properties

Private liquid

liquid: Liquid

Defined in parser/parser.ts:13

Methods

parse

parse(tokens: TopLevelToken[]): Template[]

Defined in parser/parser.ts:18

Parameters:

Name Type
tokens TopLevelToken[]

Returns: Template[]


parseStream

parseStream(tokens: TopLevelToken[]): ParseStreamTagToken | HTMLToken | OutputToken

Defined in parser/parser.ts:39

Parameters:

Name Type
tokens TopLevelToken[]

Returns: ParseStreamTagToken | HTMLToken | OutputToken


parseToken

parseToken(token: TopLevelToken, remainTokens: TopLevelToken[]): Tag | Output | HTML

Defined in parser/parser.ts:26

Parameters:

Name Type
token TopLevelToken
remainTokens TopLevelToken[]

Returns: Tag | Output | HTML