Documentation ¶
Index ¶
- Constants
- func ParseCond(lex *Lex) (interface{}, error)
- func ParseConds(lex *Lex) (interface{}, error)
- func ParseContainer(id, op *Token, lex *Lex) (interface{}, error)
- func ParseEsl(esl string) (interface{}, error)
- func ParseExpress(lex *Lex) (interface{}, error)
- func ParseInRange(id *Token, lex *Lex) (interface{}, error)
- func ParseInSet(id *Token, lex *Lex) (interface{}, error)
- func ParseNotInRange(id *Token, lex *Lex) (interface{}, error)
- func ParseNotInSet(id *Token, lex *Lex) (interface{}, error)
- func ParseRange(lex *Lex) (from, to string, err error)
- func ParseSection(lex *Lex) (interface{}, error)
- func ParseSections(lex *Lex) (interface{}, error)
- func ParseSet(lex *Lex) ([]interface{}, error)
- type Lex
- type Token
Constants ¶
View Source
const ( BAD_T = "Bad" ID_T = "identifier" DIV_STAR_T = "/*" STAR_DIV_T = "*/" SEMI_T = ";" COMMA_T = "," LP_T = "(" RP_T = ")" LB_T = "[" RB_T = "]" LC_T = "{" RC_T = "}" ADD_T = "+" COLON_T = ":" OR_T = "or" NOT_T = "not" IN_T = "in" MAX_OPER_LEN = 3 )
Variables ¶
This section is empty.
Functions ¶
func ParseContainer ¶
id in set | id not in set | id in range | id not in range
func ParseExpress ¶
id in set | id not in set | id in range | id not in range
func ParseInRange ¶
id in [from:to] | id in [from:] | id in [:to]
func ParseInSet ¶
id in (id) | id in (id...)
func ParseNotInRange ¶
id not in [from:to] | id not in [from:] | id not in [:to]
func ParseNotInSet ¶
id not in (id) | id not in (id...)
func ParseRange ¶
range : [from:to] | [from:] | [:to]
func ParseSection ¶
section ; section union section
func ParseSections ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.