diff options
author | Sunil Shetye | 2018-08-24 11:46:02 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-08-27 16:43:40 +0530 |
commit | 3386d0d537a498adce65f313aacb7ca4a147a4d2 (patch) | |
tree | dc8b98c70c10cec2c9f3f37b5858e1afd6554698 /sci2jsyacc.py | |
parent | 9fee9bd7e5e356e872c7a539d4a6cfa89cae593c (diff) | |
download | sci2js-3386d0d537a498adce65f313aacb7ca4a147a4d2.tar.gz sci2js-3386d0d537a498adce65f313aacb7ca4a147a4d2.tar.bz2 sci2js-3386d0d537a498adce65f313aacb7ca4a147a4d2.zip |
remove exprs and gr_i from default global list
Diffstat (limited to 'sci2jsyacc.py')
-rwxr-xr-x | sci2jsyacc.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sci2jsyacc.py b/sci2jsyacc.py index b89c5bdc..24743129 100755 --- a/sci2jsyacc.py +++ b/sci2jsyacc.py @@ -65,8 +65,6 @@ JOB_BLOCKS = {} FUNCTION_VARS = set() LOCAL_VARS = set() GLOBAL_VARS = { - 'exprs', - 'gr_i', 'graphics', 'model', 'x', @@ -570,7 +568,7 @@ def p_lterm_assignment_expression(p): else: prefix = '' value = p[3][0] - if var == 'this.gr_i' and value == '[]': + if var == 'gr_i' and value == '[]': value = 'new ScilabString(["xstringb(orig(1),orig(2),\\"%s\\",sz(1),sz(2));"])' % (SCICOS_BLOCK_NAME) if var in LOCAL_VARS and '.' not in var: prefix = 'var ' |