Documentation
¶
Index ¶
Constants ¶
View Source
const ( Select = "$select" Top = "$top" Skip = "$skip" Count = "$count" OrderBy = "$orderby" InlineCount = "$inlinecount" Filter = "$filter" )
Odata keywords
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Operator ¶
type Operator struct {
Token string
// Whether the operator is left/right/or not associative
Association int
// The number of operands this operator operates on
Operands int
// Rank of precedence
Precedence int
}
Operator operator structure
type Parser ¶
type Parser struct {
// Map from string inputs to operator types
Operators map[string]*Operator
// Map from string inputs to function types
Functions map[string]*Function
}
Parser parser structure
type Token ¶
type Token struct {
Value interface{}
Type int
// contains filtered or unexported fields
}
Token token structure
type TokenMatcher ¶
TokenMatcher token matcher structure
type Tokenizer ¶
type Tokenizer struct {
TokenMatchers []*TokenMatcher
IgnoreMatchers []*TokenMatcher
}
Tokenizer structure
Source Files
¶
Click to show internal directories.
Click to hide internal directories.