code_gen

package
v0.0.0-...-dd1d5c9 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GoLang = "go"
)

Variables

This section is empty.

Functions

func GenerateGoLRCode

func GenerateGoLRCode(
	grammar *lr.Grammar,
	states *lr.LRStates) (
	io.WriterTo,
	error)

func GenerateLRCode

func GenerateLRCode(
	grammar *lr.Grammar,
	states *lr.LRStates,
	targetLanguage string) (
	io.WriterTo,
	error)

Types

type NameGenerator

type NameGenerator struct {
	// contains filtered or unexported fields
}

func NewNameGenerator

func NewNameGenerator(prefix string) *NameGenerator

func (*NameGenerator) Add

func (ng *NameGenerator) Add(name string) string

func (*NameGenerator) Internal

func (ng *NameGenerator) Internal(name string) string

func (*NameGenerator) Public

func (ng *NameGenerator) Public(name string) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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