Ejemplo n.º 1
0
    def __init__(self, **kwargs):
        Grammar.__init__(self, "Merger", context=None, **kwargs)

        self._log = logging.getLogger("breathe_master")

        self.count = 0
        # List[Compound]
        self.core_commands = []
        # List[List[Compound]]
        self.context_commands = []
        # List[Context]
        self.contexts = []

        self.top_level_commands = []
        self.top_level_contexts = []

        # Dict[Tuple[bool], SubGrammar]
        # Key of dictionary is the contexts the rule matched
        self.grammar_map = {}
        # List[Grammar]
        self.non_ccr_grammars = []

        # Dict[str, ElementBase]
        self.global_extras = {}

        # List[str] - module names
        self.modules = []

        self.add_builtin_rules()
        self.load()
 def __init__(self):
     Grammar.__init__(self, self.__class__.__name__)
     self._window_stacks = {}
     self._current_window_handle = -1
     self._status = 0  # CHANGE DEFAULT STATE HERE
     self._set_status_from_file()
     self._word_formatter = WordFormatter()
Ejemplo n.º 3
0
 def __init__(self):
     Grammar.__init__(self, name="config manager", context=None)
Ejemplo n.º 4
0
 def __init__(self):
     Grammar.__init__(self, name="config manager", context=None)
Ejemplo n.º 5
0
 def __init__(self):
     Grammar.__init__(self, name="Dynamic manager", context=None)