示例#1
0
func ParseFilterQLVm(filter string) (*FilterStatement, error) {
	l := lex.NewFilterQLLexer(filter)
	m := filterQLParser{l: l, filterTokenPager: newFilterTokenPager(l), buildVm: true}
	return m.parseFilterStart()
}
示例#2
0
func ParseFilterSelect(query string) (*FilterSelect, error) {
	l := lex.NewFilterQLLexer(query)
	m := filterQLParser{l: l, filterTokenPager: newFilterTokenPager(l), buildVm: false}
	return m.parseSelectStart()
}
示例#3
0
// Parses Tokens and returns an request.
func ParseFilterQL(filter string) (*FilterStatement, error) {
	l := lex.NewFilterQLLexer(filter)
	m := FilterQLParser{l: l, FilterTokenPager: NewFilterTokenPager(l), buildVm: false}
	return m.parse()
}