コード例 #1
0
ファイル: Comment.py プロジェクト: fthomasfr/qooxdoo
        }
        return res

    ##
    # "@internal"
    def parse_at_internal(self, line):
        res = {
            'category': 'internal',
        }
        return res

    ##
    # "@deprecated {2.1} use X instead"
    gr_at_deprecated = (
        py.Suppress('@') + py.Literal('deprecated') +
        py.QuotedString('{', endQuoteChar='}', unquoteResults=True)("since") +
        py.restOfLine("text"))

    def parse_at_deprecated(self, line):
        grammar = self.gr_at_deprecated
        presult = grammar.parseString(line)
        res = {
            'category': 'deprecated',
            'since': presult.since,
            'text': presult.text.strip()
        }
        return res

    ##
    # "@throws text"
    gr_at_throws = (py.Suppress('@') + py.Literal('throws') +
コード例 #2
0
            'text' : presult.text.strip()
        }
        return res
        
    ##
    # "@internal"
    def parse_at_internal(self, line):
        res = {
            'category' : 'internal',
        }
        return res

    ##
    # "@deprecated {2.1} use X instead"
    gr_at_deprecated = ( py.Suppress('@') + py.Literal('deprecated') + 
        py.QuotedString('{', endQuoteChar='}', unquoteResults=True)("since") + py.restOfLine("text") )
    def parse_at_deprecated(self, line):
        grammar = self.gr_at_deprecated
        presult = grammar.parseString(line)
        res = {
            'category' : 'deprecated',
            'since' : presult.since,
            'text' : presult.text.strip()
        }
        return res

    ##
    # "@throws text"
    gr_at_throws = ( py.Suppress('@') + py.Literal('throws') + 
       py.Suppress('{') + py_js_identifier.copy()('exception_type') +
       py.Suppress('}') + py.restOfLine("text") )