Documentation
¶
Index ¶
- func DropCaps(rule string) string
- func GoName(rule string) string
- func GoTypeName(rule string) string
- func IdentName(name string) string
- func MakeGrammarString(g parser.Grammar) *goNode
- func MakeTypesFromGrammar(g parser.Grammar) map[string]grammarType
- func Write(w io.Writer, data TemplateData) error
- type IdentsWriter
- type TemplateData
- type TypeMap
- type TypesData
- type VisitorWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoTypeName ¶
func MakeGrammarString ¶
func MakeTypesFromGrammar ¶
Types ¶
type IdentsWriter ¶
type IdentsWriter struct {
wbnf.GrammarNode
}
func (IdentsWriter) String ¶
func (i IdentsWriter) String() string
type TemplateData ¶
type TypesData ¶
type TypesData struct {
// contains filtered or unexported fields
}
func MakeTypes ¶
func MakeTypes(node wbnf.GrammarNode) *TypesData
type VisitorWriter ¶
type VisitorWriter struct {
// contains filtered or unexported fields
}
func GetVisitorWriter ¶
func GetVisitorWriter(types map[string]grammarType, startRule string) VisitorWriter
func (VisitorWriter) String ¶
func (w VisitorWriter) String() string
Click to show internal directories.
Click to hide internal directories.