class PERL5_REGULAR_EXPRESSION_BUILDER
Summary
Class invariant
Overview
creation features
exported features
options
scanning
parsing
  • read_character
    Goto to the next character that is not a blank or a comment.
  • read_integer
    Reads in 'last_integer' the current integer values and then goto to the next character that is not a blank or a comment.
  • emit_repeat (mini: INTEGER_32, maxi: INTEGER_32)
    Takes the top of the stack and replace it with a construction that will evaluate the repeating of it from 'mini' to 'maxi' times.
parsing
parsing
parsing
sub parts of union
make
  • make
    Initialise the attributes.
behaviors
parsing
results
basic
error managment
scanning
assertions
character classes
character class naming
and/or basics
has_extended_ligibility: BOOLEAN
writable attribute
Is the extended ligibility active?
set_extended_ligibility
effective procedure
Activate extended ligibility.
set_no_extended_ligibility
effective procedure
Desactivate extended ligibility.
set_default_options
effective procedure
Set the default options
has_unterminated_comment: BOOLEAN
writable attribute
was an unterminated comment sequence (?#... detected
skip_blanks_and_comments
effective procedure
Skips the blanks and comments when the extended legibility option is set.
read_character
effective procedure
Goto to the next character that is not a blank or a comment.
read_integer
effective procedure
Reads in 'last_integer' the current integer values and then goto to the next character that is not a blank or a comment.
emit_repeat (mini: INTEGER_32, maxi: INTEGER_32)
effective procedure
Takes the top of the stack and replace it with a construction that will evaluate the repeating of it from 'mini' to 'maxi' times.
parse_alternative
effective procedure
Parses an alternative of sequences.
parse_group
effective procedure
Parses a group.
parse_escaped
effective procedure
Parses an escaped character.
parse_union_factor
effective procedure
Parses a union factor.
internal_parse
effective procedure
Main parse of a POSIX regular expression.
parse_sequence
effective procedure
Parses a sequence of terms.
parse_term
effective procedure
Parses a term.
parse_factor
effective procedure
Parses a factor.
parse_text
effective procedure
Parses a text.
parse_union
effective procedure
Parses a union.
parse_union_term
effective procedure
Parses a union term.
read_embedded
effective procedure
Parses the text embedded in one of '[.' TEXT '.]'
recorded_character: CHARACTER
writable attribute
Last union_factor's character recorded.
recorded_item: BACKTRACKING_NODE
writable attribute
Last union_factor's item (complex expression) recorded.
set_recorded_character (value: CHARACTER)
effective procedure
Records the union_factor's character 'value'.
set_recorded_item (value: BACKTRACKING_NODE)
effective procedure
Records the union_factor's item (complex expression) 'value'.
emit_recorded
effective procedure
Emits the last union_factor's recorded character or item, depending of its kind.
make
effective procedure
Initialise the attributes.
is_case_insensitive: BOOLEAN
writable attribute
Is the match case insensitive?
is_case_sensitive: BOOLEAN
effective function
Is the match case sensitive?
set_case_sensitive
effective procedure
Set the match as case sensitive.
set_case_insensitive
effective procedure
Set the match as case insensitive.
does_any_match_newline: BOOLEAN
writable attribute
Does the "any character" mark match a newline?
set_any_match_newline
effective procedure
The "any character" mark will match a newline.
set_any_dont_match_newline
effective procedure
The "any character" mark will not match a newline.
does_match_line_boundary: BOOLEAN
writable attribute
Does the begin/end marks match line boundary?
does_match_text_boundary: BOOLEAN
effective function
Does the begin/end marks match text boundary?
set_match_line_boundary
effective procedure
The begin/end marks will match line boundary.
set_match_text_boundary
effective procedure
The begin/end marks will match text boundary.
parse_expression (expr: STRING)
effective procedure
Set the expression to parse and parse it.
parse
effective procedure
Parse the current expression.
has_result: BOOLEAN
effective function
Did the last 'parse' or 'parse_expression' produced a result in 'last_regular_expression'?
writable attribute
The last regular expression pattern built by 'parse' or 'parse_expression'
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'.
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.
the_any_character_item: REGULAR_EXPRESSION_ITEM_ANY
once function
the_not_end_of_line_item: REGULAR_EXPRESSION_ITEM_NOT_END_OF_LINE
once function
the_begin_of_line_item: REGULAR_EXPRESSION_ITEM_BEGIN_OF_LINE
once function
once function
the_begin_of_text_item: REGULAR_EXPRESSION_ITEM_BEGIN_OF_TEXT
once function
the_real_end_of_text_item: REGULAR_EXPRESSION_ITEM_END_OF_TEXT
once function
once function
the_begin_of_word_item: REGULAR_EXPRESSION_ITEM_BEGIN_OF_WORD
once function
once function
the_is_posix_alnum_item: REGULAR_EXPRESSION_ITEM_IS_POSIX_ALNUM
once function
the_is_posix_alpha_item: REGULAR_EXPRESSION_ITEM_IS_POSIX_ALPHA
once function
the_is_posix_ascii_item: REGULAR_EXPRESSION_ITEM_IS_POSIX_ASCII
once function
the_is_posix_blank_item: REGULAR_EXPRESSION_ITEM_IS_POSIX_BLANK
once function
the_is_posix_cntrl_item: REGULAR_EXPRESSION_ITEM_IS_POSIX_CNTRL
once function
the_is_posix_digit_item: REGULAR_EXPRESSION_ITEM_IS_POSIX_DIGIT
once function
the_is_posix_graph_item: REGULAR_EXPRESSION_ITEM_IS_POSIX_GRAPH
once function
the_is_posix_lower_item: REGULAR_EXPRESSION_ITEM_IS_POSIX_LOWER
once function
the_is_posix_print_item: REGULAR_EXPRESSION_ITEM_IS_POSIX_PRINT
once function
the_is_posix_punct_item: REGULAR_EXPRESSION_ITEM_IS_POSIX_PUNCT
once function
the_is_posix_space_item: REGULAR_EXPRESSION_ITEM_IS_POSIX_SPACE
once function
the_is_posix_upper_item: REGULAR_EXPRESSION_ITEM_IS_POSIX_UPPER
once function
the_is_posix_word_item: REGULAR_EXPRESSION_ITEM_IS_POSIX_WORD
once function
the_is_posix_xdigit_item: REGULAR_EXPRESSION_ITEM_IS_POSIX_XDIGIT
once function
has_named_posix_item (name: STRING): BOOLEAN
effective function
True if 'name' is for a valid posix character class
named_posix_item (name: STRING): REGULAR_EXPRESSION_ITEM
effective function
the item for the valid posix character class 'name'
has_named_perl_item (name: STRING): BOOLEAN
effective function
True if 'name' is for a valid perl character class
named_perl_item (name: STRING): REGULAR_EXPRESSION_ITEM
effective function
the item for the valid perl character class 'name'
the_cut_node: BACKTRACKING_NODE_CUT
once function
the_true_node: BACKTRACKING_NODE_TRUE
once function
the_false_node: BACKTRACKING_NODE_FALSE
once function
the_cut_and_false_node: BACKTRACKING_NODE_CUT_AND_FALSE
once function