raesl.compile.machine_files.component_definitions#

Line matcher state machines for transformations.

Module Contents#

Functions#

_process_compdef(→ None)

Attributes#

_DEFINE_COMPONENT_SPEC

_EMPYTY_SPEC

MACHINES

raesl.compile.machine_files.component_definitions._DEFINE_COMPONENT_SPEC = Multiline-String#
Show Value
"""
define_component:
    start initial;
    start -> s1 [DEFINE_KW];
        s1 -> s2 [COMPONENT_KW];
        s2 -> s3 [NAME] tag=comp_name;
    start -> s3 [WORLD_KW] tag=world;

    end accept=define_component;
    s3 -> end [NL_TK];
    s3 -> end [EOF_TK];
"""
raesl.compile.machine_files.component_definitions._process_compdef(tags: raesl.compile.machine_files.typing.TokensDict, _accept: str, builder: raesl.compile.typechecking.ast_builder.AstBuilder) None#
raesl.compile.machine_files.component_definitions._EMPYTY_SPEC = Multiline-String#
Show Value
"""
empty_component:
    start initial;
    start -> s1 [EMPTY_KW];

    end accept=empty_component;
    s1 -> end [NL_TK];
    s1 -> end [EOF_TK];
"""
raesl.compile.machine_files.component_definitions.MACHINES: raesl.compile.machine_files.typing.MachineTripletList = [('DEFINE_COMPONENT_MACHINE',), ('EMPTY_MACHINE',)]#