cmdgram.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. typedef union {
  2. char c;
  3. int i;
  4. const char * s;
  5. char * str;
  6. double f;
  7. StmtNode * stmt;
  8. ExprNode * expr;
  9. SlotAssignNode * slist;
  10. VarNode * var;
  11. SlotDecl slot;
  12. InternalSlotDecl intslot;
  13. ObjectBlockDecl odcl;
  14. ObjectDeclNode * od;
  15. AssignDecl asn;
  16. IfStmtNode * ifnode;
  17. } YYSTYPE;
  18. #define rwDEFINE 258
  19. #define rwENDDEF 259
  20. #define rwDECLARE 260
  21. #define rwBREAK 261
  22. #define rwELSE 262
  23. #define rwCONTINUE 263
  24. #define rwGLOBAL 264
  25. #define rwIF 265
  26. #define rwNIL 266
  27. #define rwRETURN 267
  28. #define rwWHILE 268
  29. #define rwDO 269
  30. #define rwENDIF 270
  31. #define rwENDWHILE 271
  32. #define rwENDFOR 272
  33. #define rwDEFAULT 273
  34. #define rwFOR 274
  35. #define rwDATABLOCK 275
  36. #define rwSWITCH 276
  37. #define rwCASE 277
  38. #define rwSWITCHSTR 278
  39. #define rwCASEOR 279
  40. #define rwPACKAGE 280
  41. #define rwNAMESPACE 281
  42. #define rwCLASS 282
  43. #define rwMESSAGE 283
  44. #define ILLEGAL_TOKEN 284
  45. #define CHRCONST 285
  46. #define INTCONST 286
  47. #define TTAG 287
  48. #define VAR 288
  49. #define IDENT 289
  50. #define DOCBLOCK 290
  51. #define STRATOM 291
  52. #define TAGATOM 292
  53. #define FLTCONST 293
  54. #define opINTNAME 294
  55. #define opINTNAMER 295
  56. #define opMINUSMINUS 296
  57. #define opPLUSPLUS 297
  58. #define STMT_SEP 298
  59. #define opSHL 299
  60. #define opSHR 300
  61. #define opPLASN 301
  62. #define opMIASN 302
  63. #define opMLASN 303
  64. #define opDVASN 304
  65. #define opMODASN 305
  66. #define opANDASN 306
  67. #define opXORASN 307
  68. #define opORASN 308
  69. #define opSLASN 309
  70. #define opSRASN 310
  71. #define opCAT 311
  72. #define opEQ 312
  73. #define opNE 313
  74. #define opGE 314
  75. #define opLE 315
  76. #define opAND 316
  77. #define opOR 317
  78. #define opSTREQ 318
  79. #define opCOLONCOLON 319
  80. #define opMDASN 320
  81. #define opNDASN 321
  82. #define opNTASN 322
  83. #define opSTRNE 323
  84. #define UNARY 324
  85. extern YYSTYPE CMDlval;