Documentation ¶
Index ¶
- Constants
- type Element
- type Expr
- type IdToken
- type Leaf
- type NumToken
- type Operators
- type OrTree
- type Parser
- func (p *Parser) Ast(pa *Parser) *Parser
- func (p *Parser) ExpressionNoType(sub *Parser, operators *Operators) *Parser
- func (p *Parser) ExpressionWithType(typ string, sub *Parser, operators *Operators) *Parser
- func (p *Parser) IdentifierNoType(reserved *base.HashSet[string]) *Parser
- func (p *Parser) IdentifierWithType(typ string, reserved *base.HashSet[string]) *Parser
- func (p *Parser) InsertChoice(pa *Parser) *Parser
- func (p *Parser) Match(l *lexer.Lexer) bool
- func (p *Parser) Maybe(pa *Parser) *Parser
- func (p *Parser) NumberNoType() *Parser
- func (p *Parser) NumberWithType(typ string) *Parser
- func (p *Parser) Option(pa *Parser) *Parser
- func (p *Parser) Or(pa ...*Parser) *Parser
- func (p *Parser) Parse(l *lexer.Lexer) ast.ASTree
- func (p *Parser) Repeat(pa *Parser) *Parser
- func (p *Parser) ResetNoType() *Parser
- func (p *Parser) ResetWithType(typ string) *Parser
- func (p *Parser) Sep(pat ...string) *Parser
- func (p *Parser) StringNoType() *Parser
- func (p *Parser) StringWithType(typ string) *Parser
- func (p *Parser) Token(pat ...string) *Parser
- type Precedence
- type Repeat
- type Skip
- type StrToken
- type Tree
Constants ¶
View Source
const ( LEFT = true RIGHT = false )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NumToken ¶
type NumToken struct {
// contains filtered or unexported fields
}
func NewNumToken ¶
type Operators ¶
type Operators struct {
// contains filtered or unexported fields
}
func NewOperators ¶
func NewOperators() *Operators
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func NewParserWithParser ¶
func RuleNoType ¶
func RuleNoType() *Parser
func RuleWithType ¶
func (*Parser) ExpressionNoType ¶
func (*Parser) ExpressionWithType ¶
func (*Parser) IdentifierNoType ¶
func (*Parser) IdentifierWithType ¶
func (*Parser) InsertChoice ¶
func (*Parser) NumberNoType ¶
func (*Parser) NumberWithType ¶
func (*Parser) ResetNoType ¶
func (*Parser) ResetWithType ¶
func (*Parser) StringNoType ¶
func (*Parser) StringWithType ¶
type Precedence ¶
type Precedence struct {
// contains filtered or unexported fields
}
func NewPrecedence ¶
func NewPrecedence(v int, a bool) *Precedence
type StrToken ¶
type StrToken struct {
// contains filtered or unexported fields
}
func NewStrToken ¶
Click to show internal directories.
Click to hide internal directories.