add global variable support to script engine

This commit is contained in:
mhgholamrezaei 2021-09-26 21:42:36 +09:00
parent 55db553a08
commit b093ea0c8d
10 changed files with 601 additions and 471 deletions

View file

@ -83,7 +83,8 @@ E12->( EXP )
# Types must have '_' at the first
E12->_register @PUSH
E12->_id @PUSH
E12->_global_id @PUSH
E12->_local_id @PUSH
# numbers

View file

@ -140,7 +140,8 @@ E12->( EXPRESSION )
# Types must have '_' at the first
E12->@PUSH _register
E12->@PUSH _id
E12->@PUSH _local_id
E12->@PUSH _global_id
# numbers
@ -160,7 +161,8 @@ E13->eps
STRING->@PUSH _string
L_VALUE->@PUSH _id
L_VALUE->@PUSH _global_id
L_VALUE->@PUSH _local_id
L_VALUE->@PUSH _register
NULL->eps