concepts.dsl.parsers.function_expression_parser.FunctionExpressionTransformer#
- class FunctionExpressionTransformer[source]#
Bases:
TransformerThe lark transformer for the simple function expression parser.
Methods
argument(argument)constant(constant)function_application(function_name, *args)function_name(function_name)start(args)transform(tree)Transform the given tree, and return the final result
variable(variable)- __init__(domain, escape_string=True)[source]#
Initialize the transformer.
- Parameters:
domain (FunctionDomain) – The domain to use.
escape_string (bool) – Whether to escape the string.
- __mul__(other)#
Chain two transformers together, returning a new transformer.
- Parameters:
self (Transformer)
other (Transformer | TransformerChain[_Leaf_U, _Return_V])
- Return type:
TransformerChain[_Leaf_T, _Return_V]
- __new__(**kwargs)#
- transform(tree)#
Transform the given tree, and return the final result
- Parameters:
tree (Tree[_Leaf_T])
- Return type:
_Return_T