raesl.compile.machine_files.comments#

Line matcher state machines for comments.

Module Contents#

Functions#

_process_comment_header(→ None)

_process_comment_name(→ None)

Attributes#

_COMMENT_HEADER_SPEC

_COMMENT_LINE_SPEC

MACHINES

raesl.compile.machine_files.comments._COMMENT_HEADER_SPEC = Multiline-String#
Show Value
"""
comment_header:
    start initial;
    start -> s1 [COMMENT_KW] tag=comment;

    end accept=comment_header;
    s1 -> end [NL_TK];
    s1 -> end [EOF_TK];
"""
raesl.compile.machine_files.comments._process_comment_header(tags: raesl.compile.machine_files.typing.TokensDict, _accept: str, builder: raesl.compile.typechecking.ast_builder.AstBuilder) None#
raesl.compile.machine_files.comments._COMMENT_LINE_SPEC = Multiline-String#
Show Value
"""
comment_line:
    start initial;
    start -> s1 [DOTTEDNAME] tag=name;

    end accept=comment_name;
    s1 -> end [NL_TK];
    s1 -> end [EOF_TK];
"""
raesl.compile.machine_files.comments._process_comment_name(tags: raesl.compile.machine_files.typing.TokensDict, _accept: str, builder: raesl.compile.typechecking.ast_builder.AstBuilder) None#
raesl.compile.machine_files.comments.MACHINES: raesl.compile.machine_files.typing.MachineTripletList = [('COMMENT_HEADER_MACHINE',), ('COMMENT_LINE_MACHINE',)]#