codegen

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2025 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OnBoundsMethodName = "_onBounds"
	OnErrorMethodName  = "_onError"
)
View Source
const LoxFileExtension = ".lox"

Variables

This section is empty.

Functions

func Generate

func Generate(cfg *Config) bool

func RuleGenerated

func RuleGenerated(r *lr1.Rule) generated

func WriteArray

func WriteArray[T int32 | uint32](w *strings.Builder, xs []T)

Types

type Config

type Config struct {
	Fset   *gotoken.FileSet
	Errs   *errlogger.ErrLogger
	Dir    string
	Report io.Writer
}

Jump to

Keyboard shortcuts

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