Exemplo n.º 1
0
func ParseFilterQLVm(filter string) (*FilterStatement, error) {
	l := lex.NewFilterQLLexer(filter)
	m := filterQLParser{l: l, filterTokenPager: newFilterTokenPager(l), buildVm: true}
	return m.parseFilterStart()
}
Exemplo n.º 2
0
func ParseFilterSelect(query string) (*FilterSelect, error) {
	l := lex.NewFilterQLLexer(query)
	m := filterQLParser{l: l, filterTokenPager: newFilterTokenPager(l), buildVm: false}
	return m.parseSelectStart()
}
Exemplo n.º 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()
}