+
Point of view
ANY
class REGULAR_EXPRESSION_STRING_SCANNER
Summary
Class invariant
Overview
exported features
make
  • make
    Initialise the attributes.
basic
error managment
scanning
make
effective procedure
Initialise the attributes.
scanned_string: STRING
writable attribute
The expression being currently build.
set_scanned_string (string: STRING)
effective procedure
Set the 'scanned_string' with 'string'.
has_error: BOOLEAN
writable attribute
True when an error was encountered
clear_error
effective procedure
Remove the error flag
last_error: STRING
effective function
Returns a string recorded for the error.
set_error (message: STRING)
effective procedure
Set has_error and last_error.
position: INTEGER_32
writable attribute
The scanned position.
last_character: CHARACTER
writable attribute
The scanned character.
valid_last_character: BOOLEAN
writable attribute
True when 'last_character' is valid.
valid_previous_character: BOOLEAN
effective function
True if the position-1 is a valid position.
previous_character: CHARACTER
effective function
The character at position-1.
valid_next_character: BOOLEAN
effective function
True if the position+1 is a valid position.
next_character: CHARACTER
effective function
The character at position+1.
end_of_input: BOOLEAN
effective function
True when all the characters of 'scanned_string' are scanned.
goto_position (pos: INTEGER_32)
effective procedure
Change the currently scanned position to 'pos'.
read_character
effective procedure
Reads the next character.
read_integer
effective procedure
Reads an integer value beginning at the currently scanned position.
saved_position: INTEGER_32
writable attribute
The saved position (only one is currently enougth).
save_position
effective procedure
Saves the current scanning position.
restore_saved_position
effective procedure
Restore the scanning position to the last saved one.
last_string: STRING
writable attribute
A string buffer.
last_integer: INTEGER_32
writable attribute
An integer buffer.