nebula icon indicating copy to clipboard operation
nebula copied to clipboard

Can nGQL provide ANTLR syntax file?

Open melin opened this issue 4 years ago • 7 comments

Can nGQL provide ANTLR syntax file? Convenient custom platform to do some SQL processing

For big data applications, mainly Java technology, antlr is relatively simple for developers to understand. The syntax file is submitted here: https://github.com/antlr/grammars-v4

melin avatar Dec 06 '21 13:12 melin

I am not very clear about the purpose of providing antlr files. Is it just for developers to understand ngql syntax or will you use antlr to parse ngql?

cangfengzhs avatar Dec 08 '21 04:12 cangfengzhs

I am not very clear about the purpose of providing antlr files. Is it just for developers to understand ngql syntax or will you use antlr to parse ngql?

use antlr to parse ngql

melin avatar Dec 08 '21 10:12 melin

I don't know the purpose to parse nGQL. Could you detail the scene.

Shylock-Hg avatar Dec 09 '21 03:12 Shylock-Hg

I am looking for same is to write a service which initially parse user nGQL statements to parse errors etc. beforehand. I want to limit exposer by allowing only limited nGQL keywords to end user. In this way I can separate out the DB layer and interface which I want to expose to end users.

mahpate avatar Jun 08 '22 22:06 mahpate

I am looking for same is to write a service which initially parse user nGQL statements to parse errors etc. beforehand. I want to limit exposer by allowing only limited nGQL keywords to end user. In this way I can separate out the DB layer and interface which I want to expose to end users.

Dear Mahpate, I wonder if leveraging RBAC to provide users in roles with limited permission can fulfill your requirement?

wey-gu avatar Jun 09 '22 01:06 wey-gu

We have different RBAC service responsible for RBAC and access control, our control plane kind of common for underlying stores, currently we are already supporting columnar store, we want to reuse that layer of interface and plugin new graph store undelying.

mahpate avatar Jun 13 '22 05:06 mahpate

Since nebula itself is mostly written in C + + , it's unlikely that Nebula will introduce third-party dependencies in the Java family of Antlr. If you want to use Antlr in your application, you can write your own antlr parser, after all, the current syntax of ngql is very simple.

jievince avatar Jun 13 '22 05:06 jievince