Python: module simpleparse.common.calendar_names

simpleparse.common.calendar_names | index /home/mcfletch/pylive/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 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, (tag, left, right, children), buffer) __init__(self, offset=1) 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)`
| 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, (tag, left, right, children), buffer) __init__(self, offset=1) Data and other attributes inherited from NameInterpreter: offset = 1
class NameInterpreter
`` |  | Methods defined here: __call__(self, (tag, left, right, children), buffer) __init__(self, offset=1) Data and other attributes defined here: offset = 1

Functions
`` |  | _build(name, set)

Data
`` |  | 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']