:py:mod:`raesl.compile.machine_files.component_definitions` =========================================================== .. py:module:: raesl.compile.machine_files.component_definitions .. autoapi-nested-parse:: Line matcher state machines for transformations. Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: raesl.compile.machine_files.component_definitions._process_compdef Attributes ~~~~~~~~~~ .. autoapisummary:: raesl.compile.machine_files.component_definitions._DEFINE_COMPONENT_SPEC raesl.compile.machine_files.component_definitions._EMPYTY_SPEC raesl.compile.machine_files.component_definitions.MACHINES .. py:data:: _DEFINE_COMPONENT_SPEC :value: Multiline-String .. raw:: html
Show Value .. code-block:: python """ 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]; """ .. raw:: html
.. py:function:: _process_compdef(tags: raesl.compile.machine_files.typing.TokensDict, _accept: str, builder: raesl.compile.typechecking.ast_builder.AstBuilder) -> None .. py:data:: _EMPYTY_SPEC :value: Multiline-String .. raw:: html
Show Value .. code-block:: python """ empty_component: start initial; start -> s1 [EMPTY_KW]; end accept=empty_component; s1 -> end [NL_TK]; s1 -> end [EOF_TK]; """ .. raw:: html
.. py:data:: MACHINES :type: raesl.compile.machine_files.typing.MachineTripletList :value: [('DEFINE_COMPONENT_MACHINE',), ('EMPTY_MACHINE',)]