raesl.compile.machine_files.component_instances#

Line matchers for component instances within world or a component definition.

Module Contents#

Functions#

_process_component_header(→ None)

_process_instance_no_args(→ None)

_process_instance_with_args(→ None)

_process_instance_arguments(→ None)

Attributes#

_COMPONENT_HEADER_SPEC

_COMPONENT_INSTANCE_NO_ARGS_SPEC

_COMPONENT_INSTANCE_WITH_ARGS_SPEC

MACHINES

raesl.compile.machine_files.component_instances._COMPONENT_HEADER_SPEC = Multiline-String#
Show Value
"""
component_header:
    start initial;
    start -> s1 [COMPONENT_KW] tag=component;

    end accept=component_header;
    s1 -> end [NL_TK];
    s1 -> end [EOF_TK];
"""
raesl.compile.machine_files.component_instances._process_component_header(tags: raesl.compile.machine_files.typing.TokensDict, _accept: str, builder: raesl.compile.typechecking.ast_builder.AstBuilder) None#
raesl.compile.machine_files.component_instances._COMPONENT_INSTANCE_NO_ARGS_SPEC = Multiline-String#
Show Value
"""
component_instance:
    start initial;
    start -> s1 [NAME] tag=component_instance;
    s1 -> s2 [IS_KW];
    s2 -> s3 [A_KW];
    s3 -> s4 [NAME] tag=component_def;

    end accept=component_instance_no_arguments;
    s4 -> end [NL_TK];
    s4 -> end [EOF_TK];
"""
raesl.compile.machine_files.component_instances._process_instance_no_args(tags: raesl.compile.machine_files.typing.TokensDict, _accept: str, builder: raesl.compile.typechecking.ast_builder.AstBuilder) None#
raesl.compile.machine_files.component_instances._COMPONENT_INSTANCE_WITH_ARGS_SPEC = Multiline-String#
Show Value
"""
component_instance:
    start initial;
    start -> s1 [NAME] tag=component_instance;
    s1 -> s2 [IS_KW];
    s2 -> s3 [A_KW];
    s3 -> s4 [NAME] tag=component_def;

    s4 -> s5 [WITH_KW];
    s5 -> s6 [ARGUMENT_KW];

    end accept=component_instance_with_arguments;
    s6 -> end [NL_TK];
"""
raesl.compile.machine_files.component_instances._process_instance_with_args(tags: raesl.compile.machine_files.typing.TokensDict, _accept: str, builder: raesl.compile.typechecking.ast_builder.AstBuilder) None#
raesl.compile.machine_files.component_instances._process_instance_arguments(tags: raesl.compile.machine_files.typing.TokensDict, _accept: str, builder: raesl.compile.typechecking.ast_builder.AstBuilder) None#
raesl.compile.machine_files.component_instances.MACHINES: raesl.compile.machine_files.typing.MachineTripletList = [('COMPONENT_HEADER_MACHINE',), ('COMPONENT_INSTANCE_NO_ARGS_MACHINE',),...#