BFergerson / JetBrains-Graql-Plugin

8 stars 0 forks source link

Make SubExpression #1

Closed BFergerson closed 6 years ago

BFergerson commented 6 years ago

Following is valid under current bnf:

define
application sub entity
  key app_uuid blahblah
  has app_name;

Currently parsed as:

define expression
 - expression
  - sub expression
 - expression
  - key expression
 - expression
  - has expression

As opposed to something more intuitive:

define expression
 - sub expression
  - key expression
  - has expression

Will need to determine all the different types of expressions and the valid hierarchies they can have.

BFergerson commented 6 years ago

Use these:

BFergerson commented 6 years ago

Even found a grammar file:

BFergerson commented 6 years ago

Ended up with a close copy to Graql.g4.