simpleparse.common.chartypes | index s:\sp\simpleparse\common\chartypes.py |
Common locale-specific character types
Following productions are all based on string module,
with the default locale specified. The first production
is a single character of the class and the second a
repeating character version:
digit, digits
uppercasechar, uppercase
lowercasechar, lowercase
letter, letters
whitespacechar, whitespace
punctuationchar, punctuation
octdigit, octdigits
hexdigit, hexdigits
printablechar, printable
For Python versions with the constants in the string module:
ascii_letter, ascii_letters
ascii_lowercasechar, ascii_lowercase
ascii_uppercasechar, ascii_uppercase
Following are locale-specific values, both are
single-character values:
locale_decimal_point -- locale-specific decimal seperator
locale_thousands_seperator -- locale-specific "thousands" seperator
Others:
EOF -- Matches iff parsing has reached the end of the buffer
There are no interpreters provided (the types are considered
too common to provide meaningful interpreters).
Modules | ||||||
|
Data | ||
__file__ = r'S:\sp\simpleparse\common\chartypes.pyc' __name__ = 'simpleparse.common.chartypes' c = {'EOF': Prebuilt( value = ((None, 101, 1),), ), 'ascii_letter': Range( value = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', ), 'ascii_letters': Range( repeating = 1, value = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', ), 'ascii_lowercase': Range( repeating = 1, value = 'abcdefghijklmnopqrstuvwxyz', ), 'ascii_lowercasechar': Range( value = 'abcdefghijklmnopqrstuvwxyz', ), 'ascii_uppercase': Range( repeating = 1, value = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', ), 'ascii_uppercasechar': Range( value = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', ), 'digit': Range( value = '0123456789', ), 'digits': Range( repeating = 1, value = '0123456789', ), 'hexdigit': Range( value = '0123456789abcdefABCDEF', ), ...} repeat = 'printable' single = 'printablechar' source = 'printable' value = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~ \t\n\r\x0b\x0c' |