raesl.compile.machine_files.needs#

Line matcher state machines needs.

Module Contents#

Functions#

_process_need_header(→ None)

_process_need(→ None)

Attributes#

_NEED_HEADER_SPEC

_NEED_LINE_SPEC

MACHINES

raesl.compile.machine_files.needs._NEED_HEADER_SPEC = Multiline-String#
Show Value
"""
needs_header:
    start initial;
    start -> s1 [NEED_KW] tag=need;

    end accept=need_header;
    s1 -> end [NL_TK];
    s1 -> end [EOF_TK];
"""
raesl.compile.machine_files.needs._process_need_header(tags: raesl.compile.machine_files.typing.TokensDict, _accept: str, builder: raesl.compile.typechecking.ast_builder.AstBuilder) None#
raesl.compile.machine_files.needs._NEED_LINE_SPEC = Multiline-String#
Show Value
"""
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];
"""
raesl.compile.machine_files.needs._process_need(tags: raesl.compile.machine_files.typing.TokensDict, _accept: str, builder: raesl.compile.typechecking.ast_builder.AstBuilder) None#
raesl.compile.machine_files.needs.MACHINES: raesl.compile.machine_files.typing.MachineTripletList = [('NEED_HEADER_MACHINE',), ('NEED_LINE_MACHINE',)]#