Documentation
¶
Index ¶
- Variables
- func Pretty(pretty bool) func(*Parser) error
- func Size(size int) func(*Parser) error
- type Parsed
- type Parser
- func (t *Parser) AST() *node32
- func (t *Parser) Add(rule pegRule, begin, end, index uint32)
- func (p *Parser) Init(options ...func(*Parser) error) error
- func (p *Parser) Parse(rule ...int) error
- func (p *Parser) ParseToStruct() Parsed
- func (t *Parser) PrettyPrintSyntaxTree(buffer string)
- func (t *Parser) Print()
- func (p *Parser) PrintSyntaxTree()
- func (p *Parser) Reset()
- func (p *Parser) SprintSyntaxTree() string
- func (t *Parser) Tokens() []token32
- func (t *Parser) Trim(length uint32)
- func (p *Parser) WriteSyntaxTree(w io.Writer)
- type Rank
Constants ¶
This section is empty.
Variables ¶
View Source
var RankToStr = map[Rank]string{ Realm: "Realm", Subrealm: "Subrealm", Kingdom: "Kingdom", Subkingdom: "Subkingdom", Phylum: "Phylum", Subphylum: "Subphylum", Class: "Class", Subclass: "Subclass", Order: "Order", Suborder: "Suborder", Family: "Family", Subfamily: "Subfamily", Genus: "Genus", Species: "Species", }
Functions ¶
Types ¶
type Parsed ¶
type Parser ¶
func (*Parser) ParseToStruct ¶
ParseToStruct parses the input and returns a ParsedICVCN structure. If parsing fails, the Error field will contain the error and Parsed will be false.
func (*Parser) PrettyPrintSyntaxTree ¶
func (t *Parser) PrettyPrintSyntaxTree(buffer string)
func (*Parser) PrintSyntaxTree ¶
func (p *Parser) PrintSyntaxTree()
func (*Parser) SprintSyntaxTree ¶
func (*Parser) WriteSyntaxTree ¶
Click to show internal directories.
Click to hide internal directories.