raesl.compile.typechecking.compdef_need_builder#

Code for handling ‘needs’ in component definitions.

Module Contents#

Classes#

CompDefNeedBuilder

Class for handling 'need' sections.

class raesl.compile.typechecking.compdef_need_builder.CompDefNeedBuilder(comp_child_builders: raesl.compile.typechecking.compdef_builder.CompDefChildBuilders)#

Class for handling ‘need’ sections.

Parameters:

comp_child_builders – Storage of child builders for a component definition.

needs#

Collected needs.

add_need(label_tok: raesl.compile.scanner.Token, subject_tok: raesl.compile.scanner.Token, description: str)#

Parser found another need, store it for future processing.

finish_comp(comp_def: raesl.compile.ast.components.ComponentDefinition, _spec: raesl.compile.ast.specification.Specification)#

Check the collected needs, and store them in the component definition.