class PACKRAT_TERMINAL
Summary
Class invariant
Overview
Creation features
Exported features
  • parse (context: C_): TRISTATE
    The Result is yes if the parsing succeeded, no if there was a syntax error, or maybe if the parse could complete with some more text.
  • log: LOGGER
    There is one logger per concrete type; for performance reasons it is cached in each instance.
  • log_memory__0_: LOGGER
    The cached logger.
out_in_tagged_out_memory
effective procedure
Append terse printable representation of current object in tagged_out_memory.
accept (visitor: PACKRAT_VISITOR)
effective procedure
Accept to be visited by the visitor.
pretty_print_on (stream: OUTPUT_STREAM)
effective procedure
is_coherent: BOOLEAN
is True
constant attribute
set_default_tree_builders (non_terminal_builder: PROCEDURE[TUPLE 2[FIXED_STRING, TRAVERSABLE[FIXED_STRING]]], terminal_builder: PROCEDURE[TUPLE 2[FIXED_STRING, PARSER_IMAGE]])
effective procedure
parse (context: C_): TRISTATE
effective function
The Result is yes if the parsing succeeded, no if there was a syntax error, or maybe if the parse could complete with some more text.
effective procedure
a_parser is used to parse the input buffer; it must return Void if the terminal cannot be parsed, or a STRING containing the corresponding image that will be passed to the action if the terminal is reduced.
writable attribute
writable attribute
call_action (image: PARSER_IMAGE)
effective procedure
call_terminal_builder (terminal_builder: PROCEDURE[TUPLE 2[FIXED_STRING, PARSER_IMAGE]], image: PARSER_IMAGE)
effective procedure
writable attribute
table: PARSE_TABLE[C_]
writable attribute
set (a_name: ABSTRACT_STRING, a_table: PARSE_TABLE[C_])
effective procedure
set_table (a_table: PARSE_TABLE[C_])
effective procedure
add_error_position (error: STRING, buffer: MINI_PARSER_BUFFER)
effective procedure
print_error_position (o: OUTPUT_STREAM, buffer: MINI_PARSER_BUFFER)
effective procedure
yes: TRISTATE
effective function
effective function
maybe: TRISTATE
effective function
log: LOGGER
effective function
There is one logger per concrete type; for performance reasons it is cached in each instance.
log_memory__0_: LOGGER
writable attribute
The cached logger.