def __init__(self):
        # grammar.app_context: [grammar instances with given app_content field]
        self.global_grammars = []
        self.active_global_grammars = []
        self.local_grammars = {}
        self.active_local_grammars = {}
        self.triggered = {
            'word': {
                'before': [],
                'after': [],
            },
            'match': {
                'before': [],
                'after': [],
            },
            'command': {
                'before': [],
                'after': [],
            }
        }
        try:
            self.process_contexts = _locals.GLOBAL_CONTEXTS
        except __HOLE__:
            self.process_contexts = {}
dataset/ETHPy150Open evfredericksen/pynacea/pynhost/pynhost/grammarhandler.py/GrammarHandler.__init__