simpleparse.common
index
/home/mcfletch/pylive/simpleparse/common/__init__.py

Common (library) definitions
 
You normally use this module by importing one of our
sub-modules (which automatically registers itself with
the SOURCES list defined here).
 
Calling common.share( dictionary ) with a dictionary
mapping string names to element token instances will
make the element tokens available under those string
names in default parsers.  Note: a Parser can override
this by specifying an explicit definitionSources
parameter in its initialiser.

 
Package Contents
        __init__ -- Common (library) definitions
calendar_names -- Locale-specific calendar names (day-of-week and month-of-year)
chartypes -- Common locale-specific character types
comments -- Common comment formats
iso_date -- Canonical ISO date format YYYY-MM-DDTHH:mm:SS+HH:mm
iso_date_loose -- Somewhat Looser ISO date format YYYY-MM-DD HH:mm:SS +HH:mm
numbers -- Samples showing the parsing of common programming-language constructs
phonetics -- Phonetic spellings for character values
strings -- Python string parsers with escape characters
timezone_names -- Common timezone names (civilian, military and combined)

 
Functions
       
share(dictionary)

 
Data
        SOURCES = [{'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', ), ...}, {'locale_day_abbrs': FirstOfGroup( children = [ Literal( ...l( value = 'Fri', ), ], ), 'locale_day_abbrs_lc': FirstOfGroup( children = [ Literal( ...l( value = 'fri', ), ], ), 'locale_day_abbrs_uc': FirstOfGroup( children = [ Literal( ...l( value = 'FRI', ), ], ), 'locale_day_names': FirstOfGroup( children = [ Literal( ... value = 'Friday', ), ], ), 'locale_day_names_lc': FirstOfGroup( children = [ Literal( ... value = 'friday', ), ], ), 'locale_day_names_uc': FirstOfGroup( children = [ Literal( ... value = 'FRIDAY', ), ], ), 'locale_month_abbrs': FirstOfGroup( children = [ Literal( ...eral( value = '', ), ], ), 'locale_month_abbrs_lc': FirstOfGroup( children = [ Literal( ...eral( value = '', ), ], ), 'locale_month_abbrs_uc': FirstOfGroup( children = [ Literal( ...eral( value = '', ), ], ), 'locale_month_names': FirstOfGroup( children = [ Literal( ...eral( value = '', ), ], ), ...}, {'c_comment': LibraryElement( production = 'slashbang_comm...rse.generator.Generator instance at 0x65d0488>, ), 'c_nest_comment': LibraryElement( production = 'slashbang_nest...rse.generator.Generator instance at 0x63a4680>, ), 'hash_comment': LibraryElement( production = 'hash_comment',...rse.generator.Generator instance at 0x61c9ea8>, ), 'semicolon_comment': LibraryElement( production = 'semicolon_comm...rse.generator.Generator instance at 0x61c9ea8>, ), 'slashbang_comment': LibraryElement( production = 'slashbang_comm...rse.generator.Generator instance at 0x65d0488>, ), 'slashbang_nest_comment': LibraryElement( production = 'slashbang_nest...rse.generator.Generator instance at 0x63a4680>, ), 'slashslash_comment': LibraryElement( production = 'slashslash_com...rse.generator.Generator instance at 0x61c9ea8>, )}, {'binary_number': LibraryElement( production = 'binary_number'...rse.generator.Generator instance at 0x639a998>, ), 'float': LibraryElement( production = 'float', ge...rse.generator.Generator instance at 0x639a998>, ), 'float_floatexp': LibraryElement( production = 'float_floatexp...rse.generator.Generator instance at 0x639a998>, ), 'hex': LibraryElement( production = 'hex', gene...rse.generator.Generator instance at 0x639a998>, ), 'imaginary_number': LibraryElement( production = 'imaginary_numb...rse.generator.Generator instance at 0x639a998>, ), 'int': LibraryElement( production = 'int', gene...rse.generator.Generator instance at 0x639a998>, ), 'int_unsigned': LibraryElement( production = 'int_unsigned',...rse.generator.Generator instance at 0x639a998>, ), 'number': LibraryElement( production = 'number', g...rse.generator.Generator instance at 0x639a998>, ), 'number_full': LibraryElement( production = 'number_full', ...rse.generator.Generator instance at 0x639a998>, )}, {'ISO_date': LibraryElement( production = 'ISO_date', ...rse.generator.Generator instance at 0x65ca758>, ), 'ISO_date_time': LibraryElement( production = 'ISO_date_time'...rse.generator.Generator instance at 0x65ca758>, ), 'ISO_time': LibraryElement( production = 'ISO_time', ...rse.generator.Generator instance at 0x65ca758>, )}, {'ISO_date_loose': LibraryElement( production = 'ISO_date_loose...rse.generator.Generator instance at 0x63a0e60>, ), 'ISO_date_time_loose': LibraryElement( production = 'ISO_date_time_...rse.generator.Generator instance at 0x63a0e60>, ), 'ISO_time_loose': LibraryElement( production = 'ISO_time_loose...rse.generator.Generator instance at 0x63a0e60>, )}, {'military_alphabet_char': FirstOfGroup( children = [ Literal( ...( value = 'Zulu', ), ], ), 'military_alphabet_char_lower': FirstOfGroup( children = [ Literal( ...( value = 'zulu', ), ], )}, {'string': LibraryElement( production = 'string', g...rse.generator.Generator instance at 0x6372cb0>, ), 'string_double_quote': LibraryElement( production = 'str', gene...rse.generator.Generator instance at 0x65ce248>, ), 'string_single_quote': LibraryElement( production = 'str', gene...rse.generator.Generator instance at 0x63b0ef0>, ), 'string_triple_double': LibraryElement( production = 'str', gene...rse.generator.Generator instance at 0x6393c68>, ), 'string_triple_single': LibraryElement( production = 'str', gene...rse.generator.Generator instance at 0x63999e0>, )}, {'civilian_timezone_name': FirstOfGroup( children = [ Literal( ... value = 'ACSST', ), ], ), 'military_timezone_name': FirstOfGroup( children = [ Literal( ...ral( value = 'A', ), ], ), 'timezone_name': FirstOfGroup( children = [ Literal( ...ral( value = 'A', ), ], )}]
__file__ = '/home/mcfletch/pylive/simpleparse/common/__init__.pyc'
__name__ = 'simpleparse.common'
__path__ = ['/home/mcfletch/pylive/simpleparse/common']