+
Point of view
All features
class PACKRAT_PARSER
Summary
The entry point to Packrat parsing (for PEGs: Parsing Expression Grammars)
See http://bford.info/packrat/
Direct parents
Inherit list: ABSTRACT_PARSER
Overview
Features
{ANY}
{ANY}
{}
{ANY}
{}
  • 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.
effective function
{ANY}
Returns True if the parsing succeeded or definitely could not succeed, False if some more text could make it succeed.
require
  • a_actions /= Void
  • grammar.is_coherent
  • grammar.has(start)
ensure
  • a_actions.count >= old a_actions.count
  • not Result implies a_actions.count = old a_actions.count
eval (buffer: MINI_PARSER_BUFFER, grammar: PARSE_TABLE[C_], start: STRING): BOOLEAN
effective function
{ANY}
Returns True if the parsing succeeded or definitely could not succeed, False if some more text could make it succeed.
error: PARSE_ERROR
writable attribute
{ANY}
once function
{}
once function
{}
writable attribute
{}
save_actions
effective procedure
{}
ensure
restore_actions
effective procedure
{}
require ensure
new_free_actions: FAST_ARRAY[PARSE_ACTION]
effective function
{}
ensure
  • Result.is_empty
yes: TRISTATE
effective function
{ANY}
effective function
{ANY}
maybe: TRISTATE
effective function
{ANY}
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.