Skip to content

Parser

liquid.parser.Parser

A Liquid template parser. Create a parse tree from a stream of tokens.

parse

parse(stream: TokenStream) -> list[Node]

Parse tokens from stream into a list of nodes.

parse_block

parse_block(
    stream: TokenStream, end: Container[str]
) -> BlockNode

Parse tokens from stream until we reach a token in end.