# -*- encoding: utf-8 -*-
from bnf import Group
from tl.bnf.expression import Expression

class ReturnStatement(Group):
    __group__ = [
        "return", Group([Expression], min=0), ";"
    ]

    def match(self, context):
        expr = context.beginExpression()
        res = Group.match(self, context)
        context.endExpression()
        if res == True:
            context.getCurrentScope().statements.append(["return", expr.clean()])
        return res



3d6120d1cc4a57a02e62b4fca539d3ea58404d97
<mask token>


class ReturnStatement(Group):
    <mask token>
    <mask token>

<mask token>


class ReturnStatement(Group):
    <mask token>

    def match(self, context):
        expr = context.beginExpression()
        res = Group.match(self, context)
        context.endExpression()
        if res == True:
            context.getCurrentScope().statements.append(['return', expr.
                clean()])
        return res

<mask token>


class ReturnStatement(Group):
    __group__ = ['return', Group([Expression], min=0), ';']

    def match(self, context):
        expr = context.beginExpression()
        res = Group.match(self, context)
        context.endExpression()
        if res == True:
            context.getCurrentScope().statements.append(['return', expr.
                clean()])
        return res

from bnf import Group
from tl.bnf.expression import Expression


class ReturnStatement(Group):
    __group__ = ['return', Group([Expression], min=0), ';']

    def match(self, context):
        expr = context.beginExpression()
        res = Group.match(self, context)
        context.endExpression()
        if res == True:
            context.getCurrentScope().statements.append(['return', expr.
                clean()])
        return res

# -*- encoding: utf-8 -*-
from bnf import Group
from tl.bnf.expression import Expression

class ReturnStatement(Group):
    __group__ = [
        "return", Group([Expression], min=0), ";"
    ]

    def match(self, context):
        expr = context.beginExpression()
        res = Group.match(self, context)
        context.endExpression()
        if res == True:
            context.getCurrentScope().statements.append(["return", expr.clean()])
        return res


