simpleparse.common.calendar_names
index
/usr/src/tmp/python3-module-simpleparse-buildroot/usr/lib/python3/site-packages/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
       
object
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)
 
 
Method resolution order:
DayNameInterpreter
NameInterpreter
object

Data and other attributes defined here:
nameType = 'Day'
tables = (['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday'], ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'])

Methods inherited from NameInterpreter:
__call__(self, match, buffer)
__init__(self, offset=1)

Data descriptors inherited from NameInterpreter:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from NameInterpreter:
offset = 1

 
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)
 
 
Method resolution order:
MonthNameInterpreter
NameInterpreter
object

Data and other attributes defined here:
nameType = 'Month'
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'])

Methods inherited from NameInterpreter:
__call__(self, match, buffer)
__init__(self, offset=1)

Data descriptors inherited from NameInterpreter:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from NameInterpreter:
offset = 1

 
class NameInterpreter(object)
     Methods defined here:
__call__(self, match, buffer)
__init__(self, offset=1)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
offset = 1

 
Functions
       
_build(name, set)

 
Data
        __file__ = '/usr/src/tmp/python3-module-simpleparse-buildroo...ite-packages/simpleparse/common/calendar_names.py'
__name__ = 'simpleparse.common.calendar_names'
__package__ = 'simpleparse.common'
c = {'locale_day_abbrs': FirstOfGroup(value=[Literal(value='Wed',report=T...,repeating=False,expanded=False,lookahead=False ), 'locale_day_abbrs_lc': FirstOfGroup(value=[Literal(value='wed',report=T...,repeating=False,expanded=False,lookahead=False ), 'locale_day_abbrs_uc': FirstOfGroup(value=[Literal(value='WED',report=T...,repeating=False,expanded=False,lookahead=False ), 'locale_day_names': FirstOfGroup(value=[Literal(value='Wednesday',re...,repeating=False,expanded=False,lookahead=False ), 'locale_day_names_lc': FirstOfGroup(value=[Literal(value='wednesday',re...,repeating=False,expanded=False,lookahead=False ), 'locale_day_names_uc': FirstOfGroup(value=[Literal(value='WEDNESDAY',re...,repeating=False,expanded=False,lookahead=False ), 'locale_month_abbrs': FirstOfGroup(value=[Literal(value='Sep',report=T...,repeating=False,expanded=False,lookahead=False ), 'locale_month_abbrs_lc': FirstOfGroup(value=[Literal(value='sep',report=T...,repeating=False,expanded=False,lookahead=False ), 'locale_month_abbrs_uc': FirstOfGroup(value=[Literal(value='SEP',report=T...,repeating=False,expanded=False,lookahead=False ), 'locale_month_names': FirstOfGroup(value=[Literal(value='September',re...,repeating=False,expanded=False,lookahead=False ), ...}
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']
x = 'December'