This file is indexed.

/usr/share/pyshared/ometa/_generated/parsley_termactions.py is in python-parsley 1.2-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
def createParserClass(GrammarBase, ruleGlobals):
    if ruleGlobals is None:
        ruleGlobals = {}
    class parsley_termactions(GrammarBase):
        def rule_ruleValue(self):
            _locals = {'self': self}
            self.locals['ruleValue'] = _locals
            self._trace(' ws', (11, 14), self.input.position)
            _G_apply_1, lastError = self._apply(self.rule_ws, "ws", [])
            self.considerError(lastError, 'ruleValue')
            self._trace(" '->'", (14, 19), self.input.position)
            _G_exactly_2, lastError = self.exactly('->')
            self.considerError(lastError, 'ruleValue')
            self._trace(' term', (19, 24), self.input.position)
            _G_apply_3, lastError = self._apply(self.rule_term, "term", [])
            self.considerError(lastError, 'ruleValue')
            _locals['tt'] = _G_apply_3
            _G_python_4, lastError = eval('t.Action(tt)', self.globals, _locals), None
            self.considerError(lastError, 'ruleValue')
            return (_G_python_4, self.currentError)


        def rule_semanticPredicate(self):
            _locals = {'self': self}
            self.locals['semanticPredicate'] = _locals
            self._trace(' ws', (64, 67), self.input.position)
            _G_apply_5, lastError = self._apply(self.rule_ws, "ws", [])
            self.considerError(lastError, 'semanticPredicate')
            self._trace(" '?('", (67, 72), self.input.position)
            _G_exactly_6, lastError = self.exactly('?(')
            self.considerError(lastError, 'semanticPredicate')
            self._trace(' term', (72, 77), self.input.position)
            _G_apply_7, lastError = self._apply(self.rule_term, "term", [])
            self.considerError(lastError, 'semanticPredicate')
            _locals['tt'] = _G_apply_7
            self._trace(' ws', (80, 83), self.input.position)
            _G_apply_8, lastError = self._apply(self.rule_ws, "ws", [])
            self.considerError(lastError, 'semanticPredicate')
            self._trace(" ')'", (83, 87), self.input.position)
            _G_exactly_9, lastError = self.exactly(')')
            self.considerError(lastError, 'semanticPredicate')
            _G_python_10, lastError = eval('t.Predicate(tt)', self.globals, _locals), None
            self.considerError(lastError, 'semanticPredicate')
            return (_G_python_10, self.currentError)


        def rule_semanticAction(self):
            _locals = {'self': self}
            self.locals['semanticAction'] = _locals
            self._trace(' ws', (124, 127), self.input.position)
            _G_apply_11, lastError = self._apply(self.rule_ws, "ws", [])
            self.considerError(lastError, 'semanticAction')
            self._trace(" '!('", (127, 132), self.input.position)
            _G_exactly_12, lastError = self.exactly('!(')
            self.considerError(lastError, 'semanticAction')
            self._trace(' term', (132, 137), self.input.position)
            _G_apply_13, lastError = self._apply(self.rule_term, "term", [])
            self.considerError(lastError, 'semanticAction')
            _locals['tt'] = _G_apply_13
            self._trace(' ws', (140, 143), self.input.position)
            _G_apply_14, lastError = self._apply(self.rule_ws, "ws", [])
            self.considerError(lastError, 'semanticAction')
            self._trace(" ')'", (143, 147), self.input.position)
            _G_exactly_15, lastError = self.exactly(')')
            self.considerError(lastError, 'semanticAction')
            _G_python_16, lastError = eval('t.Action(tt)', self.globals, _locals), None
            self.considerError(lastError, 'semanticAction')
            return (_G_python_16, self.currentError)


        def rule_application(self):
            _locals = {'self': self}
            self.locals['application'] = _locals
            def _G_optional_17():
                self._trace(' indentation', (178, 190), self.input.position)
                _G_apply_18, lastError = self._apply(self.rule_indentation, "indentation", [])
                self.considerError(lastError, None)
                return (_G_apply_18, self.currentError)
            def _G_optional_19():
                return (None, self.input.nullError())
            _G_or_20, lastError = self._or([_G_optional_17, _G_optional_19])
            self.considerError(lastError, 'application')
            self._trace(' name', (191, 196), self.input.position)
            _G_apply_21, lastError = self._apply(self.rule_name, "name", [])
            self.considerError(lastError, 'application')
            _locals['name'] = _G_apply_21
            def _G_or_22():
                self._trace("'('", (221, 224), self.input.position)
                _G_exactly_23, lastError = self.exactly('(')
                self.considerError(lastError, None)
                self._trace(' term_arglist', (224, 237), self.input.position)
                _G_apply_24, lastError = self._apply(self.rule_term_arglist, "term_arglist", [])
                self.considerError(lastError, None)
                _locals['args'] = _G_apply_24
                self._trace(" ')'", (242, 246), self.input.position)
                _G_exactly_25, lastError = self.exactly(')')
                self.considerError(lastError, None)
                _G_python_26, lastError = eval('t.Apply(name, self.rulename, args)', self.globals, _locals), None
                self.considerError(lastError, None)
                return (_G_python_26, self.currentError)
            def _G_or_27():
                _G_python_28, lastError = eval('t.Apply(name, self.rulename, [])', self.globals, _locals), None
                self.considerError(lastError, None)
                return (_G_python_28, self.currentError)
            _G_or_29, lastError = self._or([_G_or_22, _G_or_27])
            self.considerError(lastError, 'application')
            return (_G_or_29, self.currentError)


    if parsley_termactions.globals is not None:
        parsley_termactions.globals = parsley_termactions.globals.copy()
        parsley_termactions.globals.update(ruleGlobals)
    else:
        parsley_termactions.globals = ruleGlobals
    return parsley_termactions