Documentation ¶
Overview ¶
Package gcy contains a lexer and parser for a graph language.
Language EBNF:
Query := SearchQuery | DeleteQuery | CreateQuery SearchQuery := ( Roots [ Match ] | Match ) Returns Roots := "start" Root Root := name "=" NodeOrRel "(" id ")" ["," Root] NodeOrRel := "node" | "relation" Returns := "return" ReturnVal ["," Return] Return := name ["," Return] Match := "match" PathPart PathPart := PathAssignment | Path PathAssignment := name "=" Path Path := NodeRel NodeRel := "(" name ")" DirectionalRel "(" name ")" DirectionalRel := "<-" "[" name [":" name ] [ RelCount ] "]" RelCount := "*" | \d+ [".." * | \d+]
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Query ¶
type Query struct { Roots []*Root Match *Match Returns []*Returnable Deletes []*Returnable Creates []*Returnable }
type Returnable ¶
type Returnable struct { Type string // int, string, function, variable Name string Alias string Object, Field string Vars []*Returnable Value interface{} }
Click to show internal directories.
Click to hide internal directories.