1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
# ANTLR4 Python3 Agtype parser generation rules for apache-age
Python driver for Apache AGE, graph extension for PostgreSQL.
### Build
#### 1) Generate Agtype parser with ANTLR4
```
# prerequisites :
# - java over 8
# - download ANTLR4 from https://www.antlr.org/download/antlr-4.11.1-complete.jar
# - java -cp antlr-4.11.1-complete.jar org.antlr.v4.Tool -Dlanguage=Python3 -visitor -o ../age/gen ../../Agtype.g4
```
#### 2) Remove the *.interp & *.tokens files
#### 3) Proceed to unit testing
```
python -m unittest -v test_age_py.py
```
```
python -m unittest -v test_agtypes.py
`
|