milvus/internal/parser/planparserv2
cai.zhang f12574aaf3
Support JSON_CONTAINS or json_contains (#24814)
Signed-off-by: cai.zhang <cai.zhang@zilliz.com>
2023-06-13 10:50:37 +08:00
..
generated Support JSON_CONTAINS or json_contains (#24814) 2023-06-13 10:50:37 +08:00
Plan.g4 Support JSON_CONTAINS or json_contains (#24814) 2023-06-13 10:50:37 +08:00
README.md
check_identical.go
check_identical_test.go
error_listener.go
floating_comparision.go
floating_comparision_test.go
logical_expr_visitor.go
node_ret.go Use go-api/v2 for milvus-proto (#24770) 2023-06-09 01:28:37 +08:00
operators.go Use go-api/v2 for milvus-proto (#24770) 2023-06-09 01:28:37 +08:00
parser_visitor.go Support json contains for json field (#24720) 2023-06-09 16:10:36 +08:00
pattern_match.go
pattern_match_test.go
plan_parser_v2.go Support json contains for json field (#24720) 2023-06-09 16:10:36 +08:00
plan_parser_v2_test.go Support JSON_CONTAINS or json_contains (#24814) 2023-06-13 10:50:37 +08:00
pool.go
pool_test.go
show_visitor.go
utils.go Use go-api/v2 for milvus-proto (#24770) 2023-06-09 01:28:37 +08:00
utils_test.go Use go-api/v2 for milvus-proto (#24770) 2023-06-09 01:28:37 +08:00

README.md

Generate Parser with Antlr4

Install Antlr4

Please follow install antlr4 to install the antlr tool.

The version of antlr tool: 4.9.

Code Generate

After you install the antlr4, you can generate the parser code in golang with:

export CLASSPATH=".:${PWD}/antlr-4.9-complete.jar:$CLASSPATH"
alias antlr4='java -Xmx500M -cp "${PWD}/antlr-4.9-complete.jar:$CLASSPATH" org.antlr.v4.Tool'
alias grun='java -Xmx500M -cp "${PWD}/antlr-4.9-complete.jar:$CLASSPATH" org.antlr.v4.gui.TestRig'
antlr4 -Dlanguage=Go -package planparserv2 -o generated -no-listener -visitor Plan.g4

All generated code will be under directory generated.