GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
libraries
>
PACKRAT_PRIMARY
+
Point of view
TYPED_INTERNALS
ANY
INTERNALS_HANDLER
TYPED_INTERNALS
PACKRAT_INTERNAL
PACKRAT_VISITOR
All features
deferred class PACKRAT_PRIMARY
Summary
top
Direct parents
Inherit list:
HASHABLE
Insert list:
PACKRAT_INTERNAL
,
TRISTATE_VALUES
,
VISITABLE
Known children
Inherit list:
PACKRAT_PATTERN
,
PACKRAT_REFERENCE
Overview
top
Exported features
hash_code
:
INTEGER_32
The hash-code value of
Current
.
is_equal
(other: PACKRAT_PRIMARY):
BOOLEAN
Is
other
attached to an object considered equal to current object?
positive_lookahead
:
PACKRAT_ALTERNATIVE
prefix "@"
:
PACKRAT_ALTERNATIVE
negative_lookahead
:
PACKRAT_ALTERNATIVE
prefix "~"
:
PACKRAT_ALTERNATIVE
is_coherent
:
BOOLEAN
accept
(visitor:
PACKRAT_VISITOR
)
Accept to be visited by the
visitor
.
parse
(context:
PACKRAT_PARSE_CONTEXT
):
TRISTATE
set_default_tree_builders
(non_terminal_builder:
PROCEDURE
[
TUPLE 2
[
FIXED_STRING
,
TRAVERSABLE
[
FIXED_STRING
]]], terminal_builder:
PROCEDURE
[
TUPLE 2
[
FIXED_STRING
,
PARSER_IMAGE
]])
set_nt
(a_nt:
PACKRAT_NON_TERMINAL
)
nt
:
PACKRAT_NON_TERMINAL
set_paren
(a_paren:
BOOLEAN
)
need_paren
:
BOOLEAN
pack_parse
(context:
PACKRAT_PARSE_CONTEXT
):
TRISTATE
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.
yes
:
TRISTATE
no
:
TRISTATE
maybe
:
TRISTATE
hash_code
:
INTEGER_32
effective function
top
The hash-code value of
Current
.
ensure
good_hash_value:
Result >= 0
is_equal
(other: PACKRAT_PRIMARY):
BOOLEAN
effective function
top
Is
other
attached to an object considered equal to current object?
require
other /= Void
other /= Void
other /= Void
ensure
commutative:
generating_type = other.generating_type implies Result = other.is_equal(Current)
Result implies hash_code = other.hash_code
positive_lookahead
:
PACKRAT_ALTERNATIVE
frozen
effective function
top
prefix "@"
:
PACKRAT_ALTERNATIVE
effective function
top
negative_lookahead
:
PACKRAT_ALTERNATIVE
frozen
effective function
top
prefix "~"
:
PACKRAT_ALTERNATIVE
effective function
top
is_coherent
:
BOOLEAN
deferred function
top
ensure
must_be_coherent:
Result
accept
(visitor:
PACKRAT_VISITOR
)
deferred procedure
top
Accept to be visited by the
visitor
.
require
visitor /= Void
parse
(context:
PACKRAT_PARSE_CONTEXT
):
TRISTATE
frozen
effective function
top
require
context /= Void
ensure
not Result.is_equal(
yes
) implies context.buffer.current_index = old context.buffer.current_index
set_default_tree_builders
(non_terminal_builder:
PROCEDURE
[
TUPLE 2
[
FIXED_STRING
,
TRAVERSABLE
[
FIXED_STRING
]]], terminal_builder:
PROCEDURE
[
TUPLE 2
[
FIXED_STRING
,
PARSER_IMAGE
]])
deferred procedure
top
set_nt
(a_nt:
PACKRAT_NON_TERMINAL
)
effective procedure
top
require
a_nt /= Void
ensure
nt
= a_nt
nt
:
PACKRAT_NON_TERMINAL
writable attribute
top
set_paren
(a_paren:
BOOLEAN
)
effective procedure
top
ensure
need_paren
= a_paren
need_paren
:
BOOLEAN
writable attribute
top
pack_parse
(context:
PACKRAT_PARSE_CONTEXT
):
TRISTATE
deferred function
top
require
context /= Void
ensure
not Result.is_equal(
yes
) implies context.buffer.current_index = old context.buffer.current_index
log
:
LOGGER
effective function
top
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
top
The cached logger.
The ugly name is intentional. Don't use directly.
yes
:
TRISTATE
effective function
top
no
:
TRISTATE
effective function
top
maybe
:
TRISTATE
effective function
top