summaryrefslogtreecommitdiff
path: root/sci2jsyacc.py
diff options
context:
space:
mode:
authorSunil Shetye2018-06-19 11:04:06 +0530
committerSunil Shetye2018-06-19 11:04:25 +0530
commit1ac5446e46da7a6a0c55fdfca760e9a2844f60e5 (patch)
treeb7a7380552ecc41891e34ab8892669c997b49b76 /sci2jsyacc.py
parent1170404c7650cb531534b308f103c9b6abd50d14 (diff)
downloadsci2js-1ac5446e46da7a6a0c55fdfca760e9a2844f60e5.tar.gz
sci2js-1ac5446e46da7a6a0c55fdfca760e9a2844f60e5.tar.bz2
sci2js-1ac5446e46da7a6a0c55fdfca760e9a2844f60e5.zip
support return
Diffstat (limited to 'sci2jsyacc.py')
-rwxr-xr-xsci2jsyacc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sci2jsyacc.py b/sci2jsyacc.py
index ac0e60ad..35e90a65 100755
--- a/sci2jsyacc.py
+++ b/sci2jsyacc.py
@@ -65,7 +65,8 @@ def p_statementblock_statement(p):
def p_statement_assignment(p):
'''statement : assignment EOL
| assignment SEMICOLON
- | function EOL'''
+ | function EOL
+ | RETURN EOL'''
p[0] = '%s;\n' % (p[1])
def p_statement_resume(p):