generator

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ASTGenerator *cgen.CodeGenerator[*ASTData]
)
View Source
var (
	LexerGenerator *cgen.CodeGenerator[*LexerData]
)
View Source
var (
	ParserGenerator *cgen.CodeGenerator[*ParserData]
)

Functions

This section is empty.

Types

type ASTData

type ASTData struct {
	PackageName string
	Symbols     []string
}

func NewASTData

func NewASTData(rules []*pkg.Rule) *ASTData

func (*ASTData) SetPkgName

func (ad *ASTData) SetPkgName(pkg_name string) error

type LexerData

type LexerData struct {
	PackageName string
}

func NewLexerData

func NewLexerData() *LexerData

func (*LexerData) SetPkgName

func (ld *LexerData) SetPkgName(pkg_name string) error

type ParserData

type ParserData struct {
	PackageName string

	Symbols string
	Lines   []string
}

func NewParserData

func NewParserData(rules []*pkg.Rule) (*ParserData, error)

func (*ParserData) SetPkgName

func (d *ParserData) SetPkgName(pkg_name string) error

Jump to

Keyboard shortcuts

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