Module ast

Module ast 

Source
Expand description

Defines the AST structure of a graph DSL file

Structs§

AddEdgeAttribute
An attr statement that adds an attribute to an edge
AddGraphNodeAttribute
An attr statement that adds an attribute to a graph node
Assign
A set statement that updates the value of a mutable variable
Attribute
The name and value of an attribute
AttributeShorthand
An attribute shorthand
AttributeShorthands
Attribute shorthands
Call
A function call
Capture
A capture expression that references a syntax node
CreateEdge
An edge statement that creates a new edge
CreateGraphNode
A node statement that creates a new graph node
DeclareImmutable
A let statement that declares a new immutable variable
DeclareMutable
A var statement that declares a new mutable variable
File
A graph DSL file
ForIn
A for in statement
Global
A global variable
If
A cond conditional statement that selects the first branch with a matching condition
IfArm
One arm of a cond statement
IntegerConstant
An integer constant
ListComprehension
An list comprehension
ListLiteral
An ordered list of values
Print
A print statement that prints out some debugging information
RegexCapture
A reference to one of the regex captures in a scan statement
Scan
A scan statement that matches regular expressions against a string
ScanArm
One arm of a scan statement
ScopedVariable
A reference to a scoped variable
SetComprehension
An set comprehension
SetLiteral
An unordered set of values
Stanza
One stanza within a file
StringConstant
A string constant
UnscopedVariable
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