raesl.compile.machine_files.verb_defs#

Line matcher state machines for verb and pre-position definitions.

Module Contents#

Functions#

_process_define_verb(→ None)

_process_verb_def(→ None)

Attributes#

_DEFINE_VERB_SPEC

_VERB_PREPOS_SPEC

MACHINES

raesl.compile.machine_files.verb_defs._DEFINE_VERB_SPEC = Multiline-String#
Show Value
"""
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];
"""
raesl.compile.machine_files.verb_defs._process_define_verb(tags: raesl.compile.machine_files.typing.TokensDict, _accept: str, builder: raesl.compile.typechecking.ast_builder.AstBuilder) None#
raesl.compile.machine_files.verb_defs._VERB_PREPOS_SPEC = Multiline-String#
Show Value
"""
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];
"""
raesl.compile.machine_files.verb_defs._process_verb_def(tags: raesl.compile.machine_files.typing.TokensDict, _accept: str, builder: raesl.compile.typechecking.ast_builder.AstBuilder) None#
raesl.compile.machine_files.verb_defs.MACHINES: raesl.compile.machine_files.typing.MachineTripletList = [('DEFINE_VERB_MACHINE',), ('VERB_PREPOS_MACHINE',)]#