[Mumps2Py:] [82] added tokens for structured system variables.

[ Thread Index | Date Index | More lists.mumps2py.org/discuss Archives ]


Revision: 82
Author:   pgallot
Date:     2008-02-04 23:28:05 +0000 (Mon, 04 Feb 2008)

Log Message:
-----------
added tokens for structured system variables.

Modified Paths:
--------------
    trunk/mumps2py/tokens.py


Modified: trunk/mumps2py/tokens.py
===================================================================
--- trunk/mumps2py/tokens.py	2008-02-04 23:26:50 UTC (rev 81)
+++ trunk/mumps2py/tokens.py	2008-02-04 23:28:05 UTC (rev 82)
@@ -57,11 +57,15 @@
 V_HOROLOG, V_IO, V_JOB, V_KEY = 154, 155, 156, 157
 V_PRINCIPAL, V_QUIT, V_REFERENCE, V_STACK = 158, 159, 160, 161
 V_STORAGE, V_SYSTEM, V_TEST, V_X, V_Y = 162, 163, 164, 165, 166
-V_ZCSTATUS, V_ZVER, V_ZVERSION, V_ZERROR = 167, 168, 169, 170
-# NOTE: I have no idea what these intrinsic vars are for:
-V_ZJOB, V_ZR, V_ZNSPACE, V_ZH = 171, 172, 173, 174 
-V_ZTRAP, V_UNKNOWN = 175, 176
+V_UNKNOWN = 167
 
+#NOTE: Structured System variables have values starting at 175.
+SSV_CHARACTER, SSV_DEVICE, SSV_DISPLAY, SSV_EVENT = 175, 176, 177, 178
+SSV_GLOBAL, SSV_JOB, SSV_LIBRARY, SSV_LOCK = 179, 180, 181, 182
+SSV_ROUTINE, SSV_SYSTEM, SSV_WINDOW, SSV_Y = 183, 184, 185, 186
+SSV_UNKNOWN = 187
+
+
 OP_TOKEN_DICT = {"+":OPADD, "-":OPSUB,
                  "*":OPMULT, "**":OPEXP,
                  "\\":OPFRACDIV, "/":OPINTDIV,
@@ -117,6 +121,19 @@
                    "T":F_TEXT, "TEXT":F_TEXT,
                    "TR":F_TRANSLATE, "TRANSLATE":F_TRANSLATE,
                    "V":F_VIEW, "VIEW":F_VIEW}
+
+STRUCT_SYS_VARS = {"C":SSV_CHARACTER, "CHARACTER": SSV_CHARACTER,
+                   "D":SSV_DEVICE, "DEVICE":SSV_DEVICE,
+                   "DI":SSV_DISPLAY, "DISPLAY":SSV_DISPLAY,
+                   "E":SSV_EVENT, "EVENT":SSV_EVENT,
+                   "G":SSV_GLOBAL, "GLOBAL":SSV_GLOBAL,
+                   "J":SSV_JOB, "JOB":SSV_JOB,
+                   "LI":SSV_LIBRARY, "LIBRARY":SSV_LIBRARY,
+                   "L":SSV_LOCK, "LOCK":SSV_LOCK,
+                   "R":SSV_ROUTINE, "ROUTINE":SSV_ROUTINE,
+                   "S":SSV_SYSTEM, "SYSTEM":SSV_SYSTEM,
+                   "W":SSV_WINDOW, "WINDOW":SSV_WINDOW,
+                   "Y":SSV_Y}
                    
 CMD_TOKEN_DICT = {"B":BREAKCMD, "BREAK":BREAKCMD,
                   "C":CLOSECMD, "CLOSE":CLOSECMD,
@@ -250,6 +267,19 @@
     FCC_NEWPAGE:"<FF>",
     FCC_MOV:"<mov>",
     FCC_CHARVAL:"<asc>",
+    SSV_CHARACTER:"CHARACTER structured system variable",
+    SSV_DEVICE:"DEVICE structured system variable",
+    SSV_DISPLAY:"DISPLAY structured system variable",
+    SSV_EVENT:"EVENT structured system variable",
+    SSV_GLOBAL:"GLOBAL structured system variable",
+    SSV_JOB:"JOB structured system variable",
+    SSV_LIBRARY:"LIBRARY structured system variable",
+    SSV_LOCK:"LOCK structured system variable",
+    SSV_ROUTINE:"ROUTINE structured system variable",
+    SSV_SYSTEM:"SYSTEM structured system variable",
+    SSV_WINDOW:"WINDOW structured system variable",
+    SSV_Y:"Y structured system variable",
+    SSV_UNKNOWN:" Unknown structured system variable"
     }
 
 def extract_subtokens(extract_dict, extract_types, token):


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/