gitstack

grindlemire/go-tui code browser

482 B Go 11 lines 2026-01-31 · e47a4fd raw
1
2
3
4
5
6
7
8
9
10
11
// Package tuigen compiles .gsx template files into type-safe Go code.
//
// The pipeline consists of:
//   - [Lexer]: tokenizes .gsx source into a token stream
//   - [Parser]: builds an AST from the token stream
//   - [Analyzer]: performs semantic analysis (imports, refs, state bindings)
//   - [Generator]: emits Go source code from the analyzed AST
//
// Additionally, [ParseTailwindClasses] translates Tailwind-style class strings
// into tui element options.
package tuigen