Expand description
Defines the AST structure of a graph DSL file
Structs§
- AddEdge
Attribute - An
attrstatement that adds an attribute to an edge - AddGraph
Node Attribute - An
attrstatement that adds an attribute to a graph node - Assign
- A
setstatement that updates the value of a mutable variable - Attribute
- The name and value of an attribute
- Attribute
Shorthand - An attribute shorthand
- Attribute
Shorthands - Attribute shorthands
- Call
- A function call
- Capture
- A capture expression that references a syntax node
- Create
Edge - An
edgestatement that creates a new edge - Create
Graph Node - A
nodestatement that creates a new graph node - Declare
Immutable - A
letstatement that declares a new immutable variable - Declare
Mutable - A
varstatement that declares a new mutable variable - File
- A graph DSL file
- ForIn
- A
for instatement - Global
- A global variable
- If
- A
condconditional statement that selects the first branch with a matching condition - IfArm
- One arm of a
condstatement - Integer
Constant - An integer constant
- List
Comprehension - An list comprehension
- List
Literal - An ordered list of values
- A
printstatement that prints out some debugging information - Regex
Capture - A reference to one of the regex captures in a
scanstatement - Scan
- A
scanstatement that matches regular expressions against a string - ScanArm
- One arm of a
scanstatement - Scoped
Variable - A reference to a scoped variable
- SetComprehension
- An set comprehension
- SetLiteral
- An unordered set of values
- Stanza
- One stanza within a file
- String
Constant - A string constant
- Unscoped
Variable - A reference to a global or local variable
Enums§
- Condition
- Expression
- An expression that can appear in a graph DSL file
- Statement
- A statement that can appear in a graph DSL stanza
- Variable
- A reference to a variable