diff options
-rwxr-xr-x | sci2jsyacc.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sci2jsyacc.py b/sci2jsyacc.py index c7d656e7..c1de5ef0 100755 --- a/sci2jsyacc.py +++ b/sci2jsyacc.py @@ -72,11 +72,15 @@ def p_termarraylist_termarraylist_semicolon_expression(p): | expression COMMA expression''' p[0] = str(p[1]) + ',' + str(p[3]) -def p_termarraylist_termarraylist_expression(p): +def p_termarraylist_termarraylist_term(p): '''termarraylist : termarraylist term | term term''' p[0] = str(p[1]) + ',' + str(p[2]) +def p_termarraylist_addition_term_term(p): + 'termarraylist : ADDITION term term' + p[0] = str(p[1]) + str(p[2]) + ',' + str(p[3]) + # end define termarraylist # define list |