concepts.pdsketch.parsers.pdsketch_v3_parser.Suite#

class Suite[source]#

Bases: object

A suite of statements. This is used as the intermediate representation of the parsed expressions.

Methods

get_all_assign_expressions()

get_all_check_expressions()

get_all_expr_expression([...])

get_all_regression_expressions([...])

get_combined_return_expression([...])

Attributes

tracker

items

__init__(items, tracker=None)#
Parameters:
Return type:

None

__new__(**kwargs)#
get_all_assign_expressions()[source]#
Return type:

List[Tuple[VariableAssignmentExpression, Dict[str, Any]]]

get_all_check_expressions()[source]#
Return type:

List[ValueOutputExpression]

get_all_expr_expression(allow_multiple_expressions=False)[source]#
Parameters:

allow_multiple_expressions (bool) –

Return type:

ValueOutputExpression | Tuple[ValueOutputExpression, …] | None

get_all_regression_expressions(use_runtime_assign=True)[source]#
Return type:

List[AchieveExpression | FindExpression | RuntimeAssignExpression | ListExpansionExpression | RegressionCommitFlag | OperatorApplicationExpression | RegressionRuleApplicationExpression | ConditionalRegressionRuleBodyExpression | LoopRegressionRuleBodyExpression]

get_combined_return_expression(allow_expr_expressions=False)[source]#
Parameters:

allow_expr_expressions (bool) –

Return type:

ValueOutputExpression | None

items: Tuple[Any, ...]#
tracker: FunctionCallTracker | None = None#