You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by Ken Hu <ke...@gmail.com> on 2025/03/24 18:50:10 UTC

[DISCUSS] Per language variant gremlin-lang parser

Hi all,

Most GLVs have a Client class where the user can directly enter in a
Gremlin string script. This query string isn't processed on the client
side. If that query contains an error, it requires a round trip with the
server in order to know that the query is invalid. This round trip could be
saved by having parsing on the driver side. The grammar file could be used
to generate an ANTLR parser in each of the official GLVs starting in
TinkerPop 4. As an added benefit, this checking also prevents the user from
accidentally trying to use a feature that their version of the language
doesn't support. There should be an option on the driver side to enable or
disable this feature.

Does anyone have any thoughts on this?

Thanks,
Ken