You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/03/16 19:48:00 UTC

[jira] [Commented] (TINKERPOP-2533) Develop a grammar for Gremlin

    [ https://issues.apache.org/jira/browse/TINKERPOP-2533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17302854#comment-17302854 ] 

ASF GitHub Bot commented on TINKERPOP-2533:
-------------------------------------------

spmallette opened a new pull request #1408:
URL: https://github.com/apache/tinkerpop/pull/1408


   https://issues.apache.org/jira/browse/TINKERPOP-2533
   
   This module is currently standalone, meaning it depends on no other TinkerPop modules nor does any module depend on it. It represents an initial body of work which has reasonable coverage of Gremlin and a expansive and flexible test suite.
   
   Builds with `mvn clean install`
   
   VOTE +1


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Develop a grammar for Gremlin
> -----------------------------
>
>                 Key: TINKERPOP-2533
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2533
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: process
>    Affects Versions: 3.5.0
>            Reporter: Stephen Mallette
>            Assignee: Stephen Mallette
>            Priority: Major
>
> An ANTLR grammar for Gremlin would allow us to look at Gremlin as more of a language and to independently consider how that language gets implemented in each variant. By driving the language development through the grammar rather than through Java (as we do now), we can avoid problems where Java-oriented idioms leak into other programming language implementations. 
> For this initial body of work, the contribution will contain:
> * a new {{gremlin-grammar}} maven module
> * which will have a ANTLR4 grammar file 
> * tests for the parser which will extract a corpus of Gremlin traversal from the gherkin tests and the documentation
> This initial contribution will have some limitations initially where certain types of statements from the testing corpus are simply not supported by the grammar as it is today. Much of this will have limitation will have to do with examples using Groovy syntax and lambdas, but there are yet places where the grammar needs further development. Those limitations can be satisfied by other pull requests. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)