immutable class ERE_LEX_TOKENS < $ENUMS{ERE_LEX_TOKENS}
****

________This_class_provides_a_simple_mapping_facility_from_characters_to
___lexical_tokens.

________The_associated_resource_file_contains_only_a_single_character_per
___line_(after_the_first_which_contains_the_count_of_remaining_lines).


Ancestors
$ENUMS{_} $HASH $IS_EQ $ANCHORED_FMT
$FMT $STR $NIL $IS_NIL
$BINARY $TEXT



Public


Readable Attributes
attr enum : CARD ; .. Included as enum
**** Used also for transforming an enum to a cardinal value.

Constants
const cardinality : CARD := val_count ; .. Included as cardinality
**** the default value!
const offset : CARD := 1 ; .. Included as offset
****
________This_is_the_offset_from_the_index_of_first_element_of_the_Names_array
___(ie_zero)_to_the_first_enumeration_value_numeric_code.

Features
Asterisk : SAME
Colon : SAME
Comma : SAME
Equals_Mark : SAME
Escape : SAME
Fullstop : SAME
Left_Anchor : SAME
Left_Brace : SAME
Left_Bracket : SAME
Left_Parenthesis : SAME
Minus_Sign : SAME
Plus_Sign : SAME
Question_Mark : SAME
Right_Anchor : SAME
Right_Brace : SAME
Right_Bracket : SAME
Right_Parenthesis : SAME
Vertical_Line : SAME
binstr : BINSTR .. Included as binstr
build( .. Included as build
build( loc_cursor : STR_CURSOR ) : SAME .. Included as build
card : CARD .. Included as card
create( .. Included as create
create( .. Included as create
create( str : STR ) : SAME .. Included as create
****
________This_is_the_creation_routine_from_a_string_which_is_any_of_the
___abbreviations_listed_in_the_Name_table.____If_the_name_table_has_not_been
___read_in_this_is_done_first.
fmt( format : ANCHORED_DESCR ) : STR .. Included as fmt
fmt( format : ANCHORED_DESCR, lib : LIBCHARS ) : STR .. Included as fmt
hash : CARD .. Included as hash
is_enum( str : STR ) : CONVERSION_RESULTS .. Included as is_enum
is_eq( .. Included as is_eq
is_eq(other : $OB) : BOOL .. Included as is_eq
**** This is the generic equality predicate. c.f. the class $IS_EQ
is_nil : BOOL .. Included as is_nil
nil : SAME .. Included as nil
read( .. Included as read
str( lib : LIBCHARS ) : STR .. Included as str
****
________This_routine_provides_a_string_representation_of_self_in_the_given
___character_repertoire_and_encoding_-_including_a_nil_value.
str : STR .. Included as str
****
________This_routine_provides_a_string_representation_of_self_in_the_default
___character_repertoire_and_encoding_-_including_a_nil_value.
token( ch : CHAR ) : SAME
****
________This_routine_returns_the_token_value_corresponding_to_the_given
___character_--_or_void_if_there_is_no_match.
write( .. Included as write

Iters
elt! : SAME .. Included as elt!


Private

const Max_Val : CARD := val_count ; .. Included as Max_Val
shared Names : ARRAY{STR} ; .. Included as Names
**** for external representation!
shared Names : ARRAY{STR} ; .. Included as Names
**** for external representation!
check_names( loc_lib : LIBCHARS ) .. Included as check_names
attr enum : CARD ; .. Included as enum
**** Used also for transforming an enum to a cardinal value.
equals(first_lcase,second : STR) : BOOL .. Included as equals
**** This routine tests for string equality up to the length of first! The test is case independent.
shared lib : LIBCHARS ; .. Included as lib
shared lib : LIBCHARS ; .. Included as lib
lookup(str : STR) : CARD .. Included as lookup
scan!(str : STR) : CARD .. Included as scan!
const val_count : CARD := 18 ;

The Sather Home Page