:py:mod:`raesl.compile.machine_files.verb_defs`
===============================================
.. py:module:: raesl.compile.machine_files.verb_defs
.. autoapi-nested-parse::
Line matcher state machines for verb and pre-position definitions.
Module Contents
---------------
Functions
~~~~~~~~~
.. autoapisummary::
raesl.compile.machine_files.verb_defs._process_define_verb
raesl.compile.machine_files.verb_defs._process_verb_def
Attributes
~~~~~~~~~~
.. autoapisummary::
raesl.compile.machine_files.verb_defs._DEFINE_VERB_SPEC
raesl.compile.machine_files.verb_defs._VERB_PREPOS_SPEC
raesl.compile.machine_files.verb_defs.MACHINES
.. py:data:: _DEFINE_VERB_SPEC
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
define_verb:
start initial;
start -> s1 [DEFINE_KW] tag=define;
s1 -> s2 [VERB_KW];
end accept=define_verb;
s2 -> end [NL_TK];
s2 -> end [EOF_TK];
"""
.. raw:: html
.. py:function:: _process_define_verb(tags: raesl.compile.machine_files.typing.TokensDict, _accept: str, builder: raesl.compile.typechecking.ast_builder.AstBuilder) -> None
.. py:data:: _VERB_PREPOS_SPEC
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
verb_prepos:
start initial;
start -> s1 [NAME] tag=verb;
s1 -> s2 [NAME] tag=prepos;
end accept=verb_is_verb;
s2 -> end [NL_TK];
s2 -> end [EOF_TK];
"""
.. raw:: html
.. py:function:: _process_verb_def(tags: raesl.compile.machine_files.typing.TokensDict, _accept: str, builder: raesl.compile.typechecking.ast_builder.AstBuilder) -> None
.. py:data:: MACHINES
:type: raesl.compile.machine_files.typing.MachineTripletList
:value: [('DEFINE_VERB_MACHINE',), ('VERB_PREPOS_MACHINE',)]