home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / l / l200 / 6.ddi / TRAN / PPD.H < prev   
Encoding:
C/C++ Source or Header  |  1986-08-21  |  3.2 KB  |  84 lines

  1. /* ppd.h - parameter pattern definition header file
  2.  
  3.     Copyright (c) 1984, 1985 by JMI Software Consultants, Inc.
  4. */
  5.  
  6. typedef struct
  7.     {
  8.     TINY iarg, acty, nxty, actn, nxtn;
  9.     } PARAMPAT;
  10.  
  11. #define MSK 0x7f    /* argument and action bitmask */
  12. /* Action codes (values of acty and actn) */
  13.  
  14. #define RST 0x80    /* Reset tokenizer to beginning of last argument */
  15. #define NOOP 0    /* do nothing */
  16. #define STOP 1    /* end of pattern */
  17. #define OINT 2    /* output integer expression */
  18. #define ODBL 3    /* output floating point expression */
  19. #define OSTR 4    /* output string expression */
  20. #define DINT 5    /* output default integer -1 */
  21. #define DDBL 6    /* output default double -1.0 */
  22. #define DSTR 7    /* output default string (char *)0 */
  23. #define OLP 8    /* output left parenthesis */
  24. #define ORP 9    /* output right parenthesis */
  25. #define OCOM 10    /* output comma */
  26. #define OUSC 11    /* output underscore */
  27. #define OS 12    /* output letter S */
  28. #define OD 13    /* output letter D */
  29. #define OPST 14    /* output address of string lvalue */
  30. #define OANY 15    /* output any expression */
  31. #define OPTR 16    /* output pointer expression */
  32. #define OATS 17    /* output address of temporary string */
  33. #define OSTI 18    /* output *string expression */
  34. #define OFLD 19    /* output field variable */
  35. #define D0INT 20    /* output integer 0 */
  36. #define D1INT 21    /* output integer 1 */
  37. #define OCH 22    /* output '\0' chararacter */
  38. #define OCHL 23    /* output 'L' character */
  39. #define OCHR 24 /* output 'R' character */
  40. #define OCHU 25 /* output 'U' character */
  41. #define OB 26 /* output letter B */
  42. #define OCHA 27    /* output 'A' character */
  43. #define OCHI 28    /* output 'I' character */
  44. #define OCHO 29 /* output 'O' character */
  45. #define OLBL 30    /* output current line number as an integer */
  46. #define D1DBL 31    /* output double 1 */
  47. #define OPLV 32    /* output address of lvalue */
  48. #define OUNS 33 /* output unsigned integer */
  49. #define ERR 34    /* error condition */
  50.  
  51. /* Input argument codes (values of iarg) */
  52.  
  53. #define OPT 0x80    /* argument is optional (OR'ed with other codes below) */
  54. #define NARG 0    /* don't process argument, do acty */
  55. #define XINT 1    /* integer expression */
  56. #define XDBL 2    /* double precision floating point expression */
  57. #define XSTR 3    /* string expression */
  58. #define XPTR 4    /* pointer expression */
  59. #define XANY 5    /* any type of expression */
  60. #define PSTR 6    /* convert string lvalue to pointer */
  61. #define TCOM 7    /* comma */
  62. #define TLP  8    /* left parenthesis */
  63. #define TRP  9    /* right parenthesis */
  64. #define TAS  10    /* AS keyword */
  65. #define TTO  11    /* TO keyword */
  66. #define TRD  12 /* READ keyword */
  67. #define TWT  13    /* WAIT keyword */
  68. #define TR   14    /* R unreserved word */
  69. #define TNUM 15    /* number sign (#) */
  70. #define TEQ  16    /* equal sign */
  71. #define CINT 17    /* constant integer (0-9) */
  72. #define XFLD 18 /* field variable */
  73. #define NONE 19    /* none of the above */
  74. #define TFOR 23 /* keyword FOR */
  75. #define TLEN 24 /* keyword LEN */
  76. #define TWID 25 /* keyword WIDTH */
  77. #define TOUT 29    /* keyword OUTPUT */
  78. #define TINP 30 /* keyword INPUT */
  79. #define TAPP 31 /* keyword APPEND */
  80. #define LFLD 32    /* FIELD variable lvalue */
  81. #define LVAL 33    /* variable lvalue */
  82. #define TRAND 34 /* keyword RANDOM */
  83. #define XFLT 35 /* single precision floating point expression */
  84.