Regular expressions are generalised over alphabets, which describe the set
of acceptable characters.
Internally, within the routines here, ranges of characters are used.
These are encoded as pairs of values (a, b) which are inclusive.
Each pair is called an "interval".
Alphabets include additional methods used for display and may also have
methods specific to a given instance (typically named with an initial
underscore).
|
|
__init__(self,
min_,
max_)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fmt_intervals(self,
intervals)
This must fully describe the data in the intervals (it is used to
hash the data). |
source code
|
|
|
|
invert(self,
intervals)
Return a list of intervals that describes the complement of the given
interval. |
source code
|
|
|
|
extension(self,
text)
This is called for extensions for the form (NAME) where NAME is any
sequence of capitals. It should return a character range. Further
uses of (...) are still to be decided. |
source code
|
|
|
|
fmt_sequence(self,
children)
This must fully describe the data in the children (it is used to
hash the data). |
source code
|
|
|
|
fmt_repeat(self,
children)
This must fully describe the data in the children (it is used to
hash the data). |
source code
|
|
|
|
fmt_choice(self,
children)
This must fully describe the data in the children (it is used to
hash the data). |
source code
|
|
|
|
fmt_option(self,
children)
This must fully describe the data in the children (it is used to
hash the data). |
source code
|
|
|
|
fmt_label(self,
label,
child)
This must fully describe the data in the child (it is used to
hash the data). |
source code
|
|
|
|
join(self,
chars)
Join a list of characters into a string (or the equivalent). |
source code
|
|
|
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|