Documentation
¶
Index ¶
- Variables
- type ASTNode
- type Parser
- func (p *Parser) Accept(valid string) bool
- func (p *Parser) AcceptRun(valid string)
- func (p *Parser) AddNode(n ASTNode)
- func (p *Parser) Backup()
- func (p *Parser) Emit() string
- func (p *Parser) Errorf(format string, args ...interface{})
- func (p *Parser) ForwardUntil(stopper string)
- func (p *Parser) HasError() bool
- func (p *Parser) Ignore()
- func (p *Parser) IsEOF() bool
- func (p *Parser) Last() ASTNode
- func (p *Parser) Next() (rune_ rune)
- func (p *Parser) Peek() rune
- func (p *Parser) PopNode()
- func (p *Parser) QueueLen() int
- func (p *Parser) Root() ASTNode
- func (p *Parser) Run(fn State) (err error)
- type State
Constants ¶
This section is empty.
Variables ¶
View Source
var EOF = rune('∎')
View Source
var ErrEOF = errors.New("End of File")
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) Backup ¶
func (p *Parser) Backup()
backup steps back one rune can be called only once per call of next
func (*Parser) ForwardUntil ¶ added in v0.0.5
runs forward until one of the stopper
Click to show internal directories.
Click to hide internal directories.