:py:mod:`raesl.compile.machine_files.needs`
===========================================
.. py:module:: raesl.compile.machine_files.needs
.. autoapi-nested-parse::
Line matcher state machines needs.
Module Contents
---------------
Functions
~~~~~~~~~
.. autoapisummary::
raesl.compile.machine_files.needs._process_need_header
raesl.compile.machine_files.needs._process_need
Attributes
~~~~~~~~~~
.. autoapisummary::
raesl.compile.machine_files.needs._NEED_HEADER_SPEC
raesl.compile.machine_files.needs._NEED_LINE_SPEC
raesl.compile.machine_files.needs.MACHINES
.. py:data:: _NEED_HEADER_SPEC
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
needs_header:
start initial;
start -> s1 [NEED_KW] tag=need;
end accept=need_header;
s1 -> end [NL_TK];
s1 -> end [EOF_TK];
"""
.. raw:: html
.. py:function:: _process_need_header(tags: raesl.compile.machine_files.typing.TokensDict, _accept: str, builder: raesl.compile.typechecking.ast_builder.AstBuilder) -> None
.. py:data:: _NEED_LINE_SPEC
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
needs_line:
start initial;
start -> s1 [NAME] tag=label;
s1 -> s2 [COLON_TK];
s2 -> s3 [DOTTEDNAME] tag=subject;
s3 -> s4 [NONSPACE] tag=description;
s4 -> s4 [NONSPACE] tag=description;
end accept=need_line;
s4 -> end [NL_TK];
s4 -> end [EOF_TK];
"""
.. raw:: html
.. py:function:: _process_need(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: [('NEED_HEADER_MACHINE',), ('NEED_LINE_MACHINE',)]