Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compiler ¶
type Compiler struct {
// contains filtered or unexported fields
}
Compiler compiles an AST schema into a list of entity definitions.
func NewCompiler ¶
NewCompiler returns a new Compiler instance with the given schema and reference validation flag.
func (*Compiler) Compile ¶
func (t *Compiler) Compile() ([]*base.EntityDefinition, []*base.RuleDefinition, error)
Compile compiles the schema into a list of entity definitions. Returns a slice of EntityDefinition pointers and an error, if any.
Click to show internal directories.
Click to hide internal directories.