deferred class PACKRAT_LOOKAHEAD
Summary
Direct parents
Inherit list: PACKRAT_ALTERNATIVE
Known children
Inherit list: PACKRAT_AND, PACKRAT_NOT
Class invariant
Overview
Features
{ANY}
{PACKRAT_INTERNAL}
{}
{PACKRAT_LOOKAHEAD, PACKRAT_VISITOR}
{ANY}
{ANY}
{ANY}
{PACKRAT_INTERNAL}
{PACKRAT_INTERNAL, PACKRAT_VISITOR}
{}
{}
  • 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.
{ANY}
is_coherent: BOOLEAN
effective function
{ANY}
ensure
  • must_be_coherent: Result
is_equal (other: PACKRAT_LOOKAHEAD): BOOLEAN
effective function
{ANY}
require
    • other /= Void
      • other /= Void
      • other /= Void
ensure
  • commutative: generating_type = other.generating_type implies Result = other.is_equal(Current)
copy (other: PACKRAT_LOOKAHEAD)
effective procedure
{ANY}
require
    • not immutable
    • same_dynamic_type(other)
      • not immutable
      • same_dynamic_type(other)
      • not immutable
      • same_dynamic_type(other)
ensure
  • is_equal(other)
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
set_nt (a_nt: PACKRAT_NON_TERMINAL)
effective procedure
require
  • a_nt /= Void
ensure
  • nt = a_nt
make (a_primary: PACKRAT_PRIMARY)
effective procedure
{}
require
  • a_primary /= Void
ensure
primary: PACKRAT_PRIMARY
writable attribute
effective function
{ANY}
require
  • other /= Void
hash_code: INTEGER_32
effective function
{ANY}
The hash-code value of Current.
ensure
  • good_hash_value: Result >= 0
positive_lookahead: PACKRAT_ALTERNATIVE
frozen
effective function
{ANY}
prefix "@": PACKRAT_ALTERNATIVE
effective function
{ANY}
negative_lookahead: PACKRAT_ALTERNATIVE
frozen
effective function
{ANY}
prefix "~": PACKRAT_ALTERNATIVE
effective function
{ANY}
accept (visitor: PACKRAT_VISITOR)
deferred procedure
{ANY}
Accept to be visited by the visitor.
require
  • visitor /= Void
parse (context: PACKRAT_PARSE_CONTEXT): TRISTATE
frozen
effective function
require
  • context /= Void
ensure
  • not Result.is_equal(yes) implies context.buffer.current_index = old context.buffer.current_index
writable attribute
set_paren (a_paren: BOOLEAN)
effective procedure
ensure
need_paren: BOOLEAN
writable attribute
pack_parse (context: PACKRAT_PARSE_CONTEXT): TRISTATE
deferred function
{}
require
  • context /= Void
ensure
  • not Result.is_equal(yes) implies context.buffer.current_index = old context.buffer.current_index
log: LOGGER
effective function
{}
There is one logger per concrete type; for performance reasons it is cached in each instance.
ensure
  • Result /= Void
log_memory__0_: LOGGER
writable attribute
{}
The cached logger.
The ugly name is intentional. Don't use directly.
yes: TRISTATE
effective function
{ANY}
effective function
{ANY}
maybe: TRISTATE
effective function
{ANY}