simpleparse.common.calendar_names
index
s:\sp\simpleparse\common\calendar_names.py

Locale-specific calendar names (day-of-week and month-of-year)
 
These values are those returned by the calendar module.  Available
productions:
 
        locale_day_names
        locale_day_names_uc
        locale_day_names_lc
                Names for the days of the week
 
        locale_day_abbrs
        locale_day_abbrs_uc
        locale_day_abbrs_lc
                Short-forms (3 characters normally) for
                the days of the week.
 
        locale_month_names
        locale_month_names_uc
        locale_month_names_lc
                Names for the months of the year
 
        locale_month_abbrs
        locale_month_abbrs_uc
        locale_month_abbrs_lc
                Short-forms (3 characters normally) for
                the months of the year
 
Interpreters:
        MonthNameInterpreter
        DayNameInterpreter
                Both offer the ability to set an index other
                than the default (of 1) for the first item in
                the list.

 
Modules
            
calendar
simpleparse.common
simpleparse.objectgenerator
string
 
Classes
            
NameInterpreter
DayNameInterpreter
MonthNameInterpreter
 
class DayNameInterpreter(NameInterpreter)
      Interpret a day-of-week name as an integer index
 
Pass an "offset" value to __init__ to use an offset other
than 1 (January = 1), normally 0 (January = 0)
 
   Data and non-method functions defined here:
__doc__ = 'Interpret a day-of-week name as an integer index...\tthan 1 (January = 1), normally 0 (January = 0)\n\t'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'simpleparse.common.calendar_names'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
nameType = 'Day'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
tables = (['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday'], ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'])
tuple() -> an empty tuple
tuple(sequence) -> tuple initialized from sequence's items
 
If the argument is a tuple, the return value is the same object.

Methods inherited from NameInterpreter:
__call__(self, (tag, left, right, children), buffer)
__init__(self, offset=1)

Data and non-method functions inherited from NameInterpreter:
offset = 1
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
class MonthNameInterpreter(NameInterpreter)
      Interpret a month-of-year name as an integer index
 
Pass an "offset" value to __init__ to use an offset other
than 1 (Monday = 1), normally 0 (Monday = 0)
 
   Data and non-method functions defined here:
__doc__ = 'Interpret a month-of-year name as an integer ind...r\n\tthan 1 (Monday = 1), normally 0 (Monday = 0)\n\t'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__module__ = 'simpleparse.common.calendar_names'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
nameType = 'Month'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
tables = (['', 'january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'], ['', 'jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec'])
tuple() -> an empty tuple
tuple(sequence) -> tuple initialized from sequence's items
 
If the argument is a tuple, the return value is the same object.

Methods inherited from NameInterpreter:
__call__(self, (tag, left, right, children), buffer)
__init__(self, offset=1)

Data and non-method functions inherited from NameInterpreter:
offset = 1
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
class NameInterpreter
       
   Methods defined here:
__call__(self, (tag, left, right, children), buffer)
__init__(self, offset=1)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'simpleparse.common.calendar_names'
str(object) -> string
 
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
offset = 1
int(x[, base]) -> integer
 
Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.
 
Functions
            
_build(name, set)
 
Data
             __file__ = r'S:\sp\simpleparse\common\calendar_names.pyc'
__name__ = 'simpleparse.common.calendar_names'
c = {'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 = '', ), ], ), ...}
da = ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun']
dn = ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday']
ma = ['', 'jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']
mn = ['', 'january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december']