typedb / typeql

TypeQL: the modern query language of TypeDB
https://typedb.com
Mozilla Public License 2.0
218 stars 45 forks source link

TypeQL parsers in alternative languages #57

Open flyingsilverfin opened 5 years ago

flyingsilverfin commented 5 years ago

Problem to Solve

Implement TypeQL parsing in languages other than Java. This would for instance allow reading entire files of queries into the python or node client without having to hack some custom delimiters into the files and executing line by line within the user's application code.

Derives from: https://github.com/graknlabs/client-python/issues/41

Current Workaround

One can either spread custom delimiters in the file that contains definitions or queries and parse these out in the client's application logic, executing them one by one, or write a wrapper around a small client-java and typeql program to do this using parseList()

Proposed Solution

Extend ANTLR to other languages.

Additional Information

flyingsilverfin commented 1 year ago

Note that we are in the process of creating a Rust parser in PEST (did not use antlr because of performance issues)