Crate grabapl_syntax

Source

Modules§

custom_syntax
interpreter

Macros§

grabapl_defs
grabapl_parse
Compared to the syntax_macro, this will only parse at runtime. The syntax_macro will parse at runtime as well, but will compile-error if the syntax is invalid.

Structs§

Block
FnCallExpr
FnDef
FnEdgeParam
FnNodeParam
IfStmt
LetStmt
LineColSpan
MacroArgs
Program
RenameStmt
ReturnStmt
ShapeEdgeParam
ShapeNodeParam
ShapeQueryParams
WithLineColSpans

Enums§

FnImplicitParam
IfCond
NodeId
ReturnStmtMapping
ShapeQueryParam
Statement
Token

Functions§

lexer
parse_to_op_ctx_and_map
Important syntax note: mutually recursive functions are not supported. Function definitions must be ordered in reverse C/C++ order, i.e., if function foo calls bar, then bar must be defined after foo in the source.
program_parser
try_parse_to_op_ctx_and_map

Type Aliases§

Span
Spanned