home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / icon / dos / src / icont / opcode.c < prev    next >
C/C++ Source or Header  |  1992-02-10  |  2KB  |  120 lines

  1. #include "link.h"
  2. #include "tproto.h"
  3. #include "opcode.h"
  4.  
  5. /*
  6.  * Opcode table.
  7.  */
  8.  
  9. struct opentry optable[] = {
  10.    "asgn",    Op_Asgn,
  11.    "bang",    Op_Bang,
  12.  
  13.  
  14.    "bscan",    Op_Bscan,
  15.  
  16.  
  17.    "cat",    Op_Cat,
  18.    "ccase",    Op_Ccase,
  19.    "chfail",    Op_Chfail,
  20.    "coact",    Op_Coact,
  21.    "cofail",    Op_Cofail,
  22.    "colm",    Op_Colm,        /* always recognized, possibly ignored*/
  23.    "compl",    Op_Compl,
  24.    "con",    Op_Con,
  25.    "coret",    Op_Coret,
  26.    "create",    Op_Create,
  27.    "cset",    Op_Cset,
  28.    "declend",    Op_Declend,
  29.    "diff",    Op_Diff,
  30.    "div",    Op_Div,
  31.    "dup",    Op_Dup,
  32.    "efail",    Op_Efail,
  33.    "end",    Op_End,
  34.    "eqv",    Op_Eqv,
  35.    "eret",    Op_Eret,
  36.    "error",    Op_Error,
  37.    "escan",    Op_Escan,
  38.    "esusp",    Op_Esusp,
  39.    "field",    Op_Field,
  40.    "filen",    Op_Filen,
  41.  
  42.  
  43.    "global",    Op_Global,
  44.    "goto",    Op_Goto,
  45.    "impl",    Op_Impl,
  46.    "init",    Op_Init,
  47.    "int",    Op_Int,
  48.    "inter",    Op_Inter,
  49.    "invoke",    Op_Invoke,
  50.    "keywd",    Op_Keywd,
  51.    "lab",    Op_Lab,
  52.    "lconcat",    Op_Lconcat,
  53.    "lexeq",    Op_Lexeq,
  54.    "lexge",    Op_Lexge,
  55.    "lexgt",    Op_Lexgt,
  56.    "lexle",    Op_Lexle,
  57.    "lexlt",    Op_Lexlt,
  58.    "lexne",    Op_Lexne,
  59.    "limit",    Op_Limit,
  60.    "line",    Op_Line,
  61.    "link",    Op_Link,
  62.    "llist",    Op_Llist,
  63.    "local",    Op_Local,
  64.    "lsusp",    Op_Lsusp,
  65.    "mark",    Op_Mark,
  66.    "mark0",    Op_Mark0,
  67.    "minus",    Op_Minus,
  68.    "mod",    Op_Mod,
  69.    "mult",    Op_Mult,
  70.    "neg",    Op_Neg,
  71.    "neqv",    Op_Neqv,
  72.    "nonnull",    Op_Nonnull,
  73.  
  74. #ifdef LineCodes
  75.    "noop",    Op_Noop,
  76. #endif                    /* LineCodes */
  77.  
  78.    "null",    Op_Null,
  79.    "number",    Op_Number,
  80.    "numeq",    Op_Numeq,
  81.    "numge",    Op_Numge,
  82.    "numgt",    Op_Numgt,
  83.    "numle",    Op_Numle,
  84.    "numlt",    Op_Numlt,
  85.    "numne",    Op_Numne,
  86.    "pfail",    Op_Pfail,
  87.    "plus",    Op_Plus,
  88.    "pnull",    Op_Pnull,
  89.    "pop",    Op_Pop,
  90.    "power",    Op_Power,
  91.    "pret",    Op_Pret,
  92.    "proc",    Op_Proc,
  93.    "psusp",    Op_Psusp,
  94.    "push1",    Op_Push1,
  95.    "pushn1",    Op_Pushn1,
  96.    "random",    Op_Random,
  97.    "rasgn",    Op_Rasgn,
  98.    "real",    Op_Real,
  99.    "record",    Op_Record,
  100.    "refresh",    Op_Refresh,
  101.    "rswap",    Op_Rswap,
  102.    "sdup",    Op_Sdup,
  103.    "sect",    Op_Sect,
  104.    "size",    Op_Size,
  105.    "str",    Op_Str,
  106.    "subsc",    Op_Subsc,
  107.    "swap",    Op_Swap,
  108.    "tabmat",    Op_Tabmat,
  109.    "tally",    Op_Tally,
  110.    "toby",    Op_Toby,
  111.    "trace",    Op_Trace,
  112.    "unions",    Op_Unions,
  113.    "unmark",    Op_Unmark,
  114.    "value",    Op_Value,
  115.    "var",    Op_Var,
  116.    "version",    Op_Version,
  117.    };
  118.  
  119. int NOPCODES = sizeof(optable) / sizeof(struct opentry);
  120.