GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
libraries
>
PACKRAT_REFERENCE
+
Point of view
PACKRAT_INTERNAL
ANY
INTERNALS_HANDLER
TYPED_INTERNALS
PACKRAT_INTERNAL
PACKRAT_VISITOR
All features
class PACKRAT_REFERENCE
Summary
top
Direct parents
Inherit list:
PACKRAT_PRIMARY
Overview
top
Creation features
make
(a_name:
ABSTRACT_STRING
)
Exported features
name
:
FIXED_STRING
is_coherent
:
BOOLEAN
out_in_tagged_out_memory
Append terse printable representation of current object in
tagged_out_memory
.
accept
(visitor:
PACKRAT_VISITOR
)
Accept to be visited by the
visitor
.
set_default_tree_builders
(non_terminal_builder:
PROCEDURE
[
TUPLE 2
[
FIXED_STRING
,
TRAVERSABLE
[
FIXED_STRING
]]], terminal_builder:
PROCEDURE
[
TUPLE 2
[
FIXED_STRING
,
PARSER_IMAGE
]])
hash_code
:
INTEGER_32
The hash-code value of
Current
.
is_equal
(other: PACKRAT_REFERENCE):
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
parse
(context:
PACKRAT_PARSE_CONTEXT
):
TRISTATE
set_nt
(a_nt:
PACKRAT_NON_TERMINAL
)
nt
:
PACKRAT_NON_TERMINAL
set_paren
(a_paren:
BOOLEAN
)
need_paren
:
BOOLEAN
yes
:
TRISTATE
no
:
TRISTATE
maybe
:
TRISTATE
name
:
FIXED_STRING
writable attribute
top
is_coherent
:
BOOLEAN
effective function
top
ensure
must_be_coherent:
Result
out_in_tagged_out_memory
effective procedure
top
Append terse printable representation of current object in
tagged_out_memory
.
accept
(visitor:
PACKRAT_VISITOR
)
effective procedure
top
Accept to be visited by the
visitor
.
require
visitor /= Void
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
top
hash_code
:
INTEGER_32
effective function
top
The hash-code value of
Current
.
ensure
good_hash_value:
Result >= 0
is_equal
(other: PACKRAT_REFERENCE):
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
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_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
yes
:
TRISTATE
effective function
top
no
:
TRISTATE
effective function
top
maybe
:
TRISTATE
effective function
top