2
0

cmdgram.h 2.0 KB

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