parser

package
v0.0.0-...-56ad345 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Code generated by goyacc -l -o grammar.go grammar.y. DO NOT EDIT.

Index

Constants

View Source
const (
	COMMENT_MARKER = "//"
	KEYWORD_MODEL  = "model"
	GEN_FN_KEYWORD = "func"
)
View Source
const CALLS = 57351
View Source
const CALLS_BODY = 57370
View Source
const COLON = 57361
View Source
const COUNT = 57353
View Source
const COUNT_INT = 57362
View Source
const FIELDS = 57347
View Source
const FIELDS_BODY = 57367
View Source
const FN = 57352
View Source
const FN_ARGS = 57365
View Source
const FN_BODY = 57366
View Source
const FN_NAME = 57364
View Source
const GEN_FNS = 57350
View Source
const L_BRACE = 57357
View Source
const L_PARENTHESIS = 57359
View Source
const METADATA = 57349
View Source
const MISC = 57348
View Source
const MISC_BODY = 57368
View Source
const MODEL = 57346
View Source
const MODEL_NAME = 57363
View Source
const PROTOFILE = 57356
View Source
const PROTOFILE_PATH = 57371
View Source
const R_BRACE = 57358
View Source
const R_PARENTHESIS = 57360
View Source
const SERIALISER_FUNC = 57355
View Source
const TAGS = 57354
View Source
const TAGS_BODY = 57369

Variables

This section is empty.

Functions

func Parse

func Parse(src []byte, path string) (*codegen.DatagenParsed, error)

---- Entry point ----

Types

type MetadataEntry

type MetadataEntry int
const (
	Count MetadataEntry = iota
	Tags
	Protofile
	MetadataEof
)

type Section

type Section int
const (
	Fields Section = iota
	Misc
	Metadata
	Gens
	GenFn
	Calls
	Serialiser
	None
)

Jump to

Keyboard shortcuts

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