1 /*- 2 * Copyright (c) 1980, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 */ 7 8 #ifndef lint 9 static char sccsid[] = "@(#)opinfo.c 8.1 (Berkeley) 06/06/93"; 10 #endif /* not lint */ 11 12 /* 13 * Operator information structure. 14 */ 15 16 #include "defs.h" 17 #include "opinfo.h" 18 19 OPINFO opinfo[] ={ 20 /* O_NOP */ 0, 0, 21 /* O_NAME */ LEAF, 0, 22 /* O_QNAME */ LEAF, "$", 23 /* O_LCON */ LEAF, 0, 24 /* O_FCON */ LEAF, 0, 25 /* O_SCON */ LEAF, 0, 26 /* O_INDEX */ UNARY, 0, 27 /* O_INDIR */ UNARY, "^", 28 /* O_RVAL */ UNARY, 0, 29 /* O_COMMA */ BINARY, ",", 30 /* O_ITOF */ UNARY|INTOP, 0, 31 /* O_ADD */ BINARY|INTOP, "+", 32 /* O_ADDF */ BINARY|REALOP, "+", 33 /* O_SUB */ BINARY|INTOP, "-", 34 /* O_SUBF */ BINARY|REALOP, "-", 35 /* O_NEG */ UNARY|INTOP, "-", 36 /* O_NEGF */ UNARY|REALOP, "-", 37 /* O_MUL */ BINARY|INTOP, "*", 38 /* O_MULF */ BINARY|REALOP, "*", 39 /* O_DIVF */ BINARY|REALOP, "/", 40 /* O_DIV */ BINARY|INTOP, " div ", 41 /* O_MOD */ BINARY|INTOP, " mod ", 42 /* O_AND */ BINARY|INTOP, " and ", 43 /* O_OR */ BINARY|INTOP, " or ", 44 /* O_LT */ BINARY|INTOP, " < ", 45 /* O_LTF */ BINARY|REALOP, " < ", 46 /* O_LE */ BINARY|INTOP, " <= ", 47 /* O_LEF */ BINARY|REALOP, " <= ", 48 /* O_GT */ BINARY|INTOP, " > ", 49 /* O_GTF */ BINARY|REALOP, " > ", 50 /* O_GE */ BINARY|INTOP, " >= ", 51 /* O_GEF */ BINARY|REALOP, " >= ", 52 /* O_EQ */ BINARY|INTOP, " = ", 53 /* O_EQF */ BINARY|REALOP, " = ", 54 /* O_NE */ BINARY|INTOP, " <> ", 55 /* O_NEF */ BINARY|REALOP, " <> ", 56 /* O_ASSIGN */ BINARY, " := ", 57 /* O_CHFILE */ 0, NIL, 58 /* O_CONT */ 0, NIL, 59 /* O_LIST */ 0, NIL, 60 /* O_NEXT */ 0, NIL, 61 /* O_PRINT */ 0, NIL, 62 /* O_STEP */ 0, NIL, 63 /* O_WHATIS */ 0, NIL, 64 /* O_WHERE */ 0, NIL, 65 /* O_XI */ 0, NIL, 66 /* O_XD */ 0, NIL, 67 /* O_CALL */ 0, NIL, 68 /* O_EDIT */ 0, NIL, 69 /* O_DUMP */ 0, NIL, 70 /* O_HELP */ 0, NIL, 71 /* O_REMAKE */ 0, NIL, 72 /* O_RUN */ 0, NIL, 73 /* O_SOURCE */ 0, NIL, 74 /* O_STATUS */ 0, NIL, 75 /* O_TRACE */ 0, NIL, 76 /* O_TRACEI */ 0, NIL, 77 /* O_STOP */ 0, NIL, 78 /* O_STOPI */ 0, NIL, 79 /* O_DELETE */ 0, NIL, 80 /* O_WHICH */ 0, NIL, 81 /* O_QLINE */ LEAF, NIL, 82 /* O_ALIAS */ LEAF, NIL, 83 /* O_GRIPE */ 0, NIL, 84 }; 85