UNPKG

@huggingface/jinja

Version:

A minimalistic JavaScript implementation of the Jinja templating engine, specifically designed for parsing and rendering ML chat templates.

8 lines 382 B
import type { Token } from "./lexer"; import { Program } from "./ast"; /** * Generate the Abstract Syntax Tree (AST) from a list of tokens. * Operator precedence can be found here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_precedence#table */ export declare function parse(tokens: Token[]): Program; //# sourceMappingURL=parser.d.ts.map