parser

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package parser builds the template tree from a SQL template using a reducer-stack strategy for the block directives (if/for) and the bind/literal test literals.

It does not parse SQL as a grammar and recognizes no clauses or connectors: everything that is not a directive or comment is opaque text (Word / Other / Space / Eol / Paren).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(src string) (ast.Node, error)

Parse turns a template string into the template tree. The result satisfies node.Text() == src, except that parser-level comments (/*%! ... */) and a trailing delimiter (;) are dropped.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL