Module dsl_util

Source
Expand description

Domain-specific language helpers.

Structs§

AliasesMap
Map of symbol and function aliases.
Diagnostics
Manages diagnostic messages emitted during parsing.
ExpressionNode
AST node without type or name checking.
FunctionCallNode
Function call in AST.
FunctionCallParser
Helper to parse function call.
InvalidArguments
Unexpected number of arguments, or invalid combination of arguments.
KeywordArgument
Keyword argument pair in AST.
StringLiteralParser
Helper to parse string literal.

Enums§

AliasDeclaration
Parsed declaration part of alias rule.
AliasId
Borrowed reference to identify alias expression.

Traits§

AliasDeclarationParser
Parser for symbol and function alias declaration.
AliasDefinitionParser
Parser for symbol and function alias definition.
AliasExpandError
Error that may occur during alias substitution.
AliasExpandableExpression
Expression item that supports alias substitution.
ExpressionFolder
Visitor-like interface to transform AST nodes recursively.
FoldableExpression
Expression item that can be transformed recursively by using folder: F.

Functions§

collect_similar
Collects similar names from the candidates list.
escape_string
Escape special characters in the input
expand_aliases
Expands aliases recursively.
fold_expression_nodes
Transforms list of nodes by using folder.
fold_function_call_args
Transforms function call arguments by using folder.