Documentation
¶
Overview ¶
Command dslgen generates Go source code from a declarative DSL grammar (YAML or JSON). The generated file contains a constructor that rebuilds the DSL programmatically, plus a stub list of the actions you still need to register — turning a prototyped grammar into checked-in, reviewable Go code with zero runtime file loading.
Usage:
dslgen -dsl grammar.yaml -package mydsl -func NewMyDSL -o mydsl_gen.go
The generated code only depends on github.com/arturoeanton/go-dsl.
Click to show internal directories.
Click to hide internal directories.