:py:mod:`raesl.compile.machine_files.variables`
===============================================
.. py:module:: raesl.compile.machine_files.variables
.. autoapi-nested-parse::
Line matcher state machines for variable declarations.
Module Contents
---------------
Functions
~~~~~~~~~
.. autoapisummary::
raesl.compile.machine_files.variables._process_varheader
raesl.compile.machine_files.variables._process_varline
Attributes
~~~~~~~~~~
.. autoapisummary::
raesl.compile.machine_files.variables._VARIABLE_HEADER_SPEC
raesl.compile.machine_files.variables._VARIABLE_LINE_SPEC
raesl.compile.machine_files.variables.MACHINES
.. py:data:: _VARIABLE_HEADER_SPEC
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
variable_header:
start initial;
start -> s1 [VARIABLE_KW] tag=variable;
end accept=variable_header;
s1 -> end [NL_TK];
s1 -> end [EOF_TK];
"""
.. raw:: html
.. py:function:: _process_varheader(tags: raesl.compile.machine_files.typing.TokensDict, _accept: str, builder: raesl.compile.typechecking.ast_builder.AstBuilder) -> None
.. py:data:: _VARIABLE_LINE_SPEC
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
variable_line:
start initial;
start -> s1 [NAME] tag=varname;
s1 -> start [COMMA_TK];
s1 -> s2 [IS_KW];
s2 -> s3 [A_KW];
s3 -> s4 [NAME] tag=typename;
end accept=variable_line;
s4 -> end [NL_TK];
s4 -> end [EOF_TK];
"""
.. raw:: html
.. py:function:: _process_varline(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: [('VARIABLE_HEADER_MACHINE',), ('VARIABLE_LINE_MACHINE',)]