dslgen

command
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

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