kenwoon opened a new pull request, #912:
URL: https://github.com/apache/age/pull/912
## Changes
- Modified tokens in 'cypher.l'
- Modified grammars in 'cypher.y' grammars
- Created headers, objects, and executables by making `Makefile`
## Instructions
1. Have Posgres 15 installed
2. From the age repo directory, run the following lines of code
```
export PATH={location of pgsql-15}/bin:$PATH
export PGDATA={location of pgsql-15}/bin/data
export USE_PGXS=TRUE
flex -b -Cfe -p -p -o 'cypher.c' cypher.l
bison -d cypher.y
make
```
3. Run `./agesql`
4. Enter a backslash `\` followed by a newline to start typing in Cypher
query
5. End each Cypher query with a semicolon `;`
### Example
`MATCH (n:Person {age: 22}) RETURN n.name AS name` should return:
```
match = true
node {
alias = n
labels = Person
property {
identifier = age
expression = 22
}
}
return = true
item {
expression = n.name
alias = name
}
where = false
with = false
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]