diff options
author | Sunil Shetye | 2018-06-19 11:04:06 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-06-19 11:04:25 +0530 |
commit | 1ac5446e46da7a6a0c55fdfca760e9a2844f60e5 (patch) | |
tree | b7a7380552ecc41891e34ab8892669c997b49b76 /sci2jsyacc.py | |
parent | 1170404c7650cb531534b308f103c9b6abd50d14 (diff) | |
download | sci2js-1ac5446e46da7a6a0c55fdfca760e9a2844f60e5.tar.gz sci2js-1ac5446e46da7a6a0c55fdfca760e9a2844f60e5.tar.bz2 sci2js-1ac5446e46da7a6a0c55fdfca760e9a2844f60e5.zip |
support return
Diffstat (limited to 'sci2jsyacc.py')
-rwxr-xr-x | sci2jsyacc.py | 3 |
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): |