Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CombinatorDeclaration ¶
type DefaultType ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
func NewGenerator(knownTypes map[string]DefaultType, typeName string) *Generator
func (*Generator) LoadFunctions ¶
func (g *Generator) LoadFunctions(functions []CombinatorDeclaration) (string, error)
type Modificator ¶
type NamedField ¶
type NamedField struct {
Name string `@Ident`
Sep string `":"`
Modificator Modificator `@@?`
Expression TypeExpression `@@`
}
type ParenExpression ¶
type ParenExpression struct {
Name string `"(" @Ident `
Parameter []TypeExpression `@@* ")"`
}
type TL ¶
type TL struct {
Declarations []CombinatorDeclaration `@@*`
Separator string `FunctionsSeparator`
Functions []CombinatorDeclaration "@@*"
}
type TypeExpression ¶
type TypeExpression struct {
BuiltIn *string `@BuiltIn`
NamedRef *string `| @Ident`
Vector *ParenExpression `| @@`
}
func (TypeExpression) String ¶
func (t TypeExpression) String() string
Click to show internal directories.
Click to hide internal directories.