Documentation
¶
Index ¶
Constants ¶
View Source
const ( OPERATION = "operation" EXPRESSION = "expression" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Expression ¶
Expression represents something like x=y or x>=y
func (Expression) String ¶
func (e Expression) String() string
func (Expression) Type ¶
func (e Expression) Type() string
type Lexer ¶
type Lexer struct {
// contains filtered or unexported fields
}
Lexer represents a lexical scanner.
func NewLexerFromString ¶
type Operation ¶
Operation represents a Node (Operation or Expression) compared with another Node using either `AND` or `OR`.
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser represents a parser, including a scanner and the underlying raw input. It also contains a small buffer to allow for two unscans.
type Token ¶
type Token int
Token represents a lexical token.
type TokenStack ¶
type TokenStack struct {
// contains filtered or unexported fields
}
TokenStack is used as the buffer for the Parser.
func (*TokenStack) Len ¶
func (s *TokenStack) Len() int
func (*TokenStack) Pop ¶
func (s *TokenStack) Pop() (TokenInfo, error)
func (*TokenStack) Push ¶
func (s *TokenStack) Push(v TokenInfo)
Click to show internal directories.
Click to hide internal directories.