cmdgram.h 2.0 KB

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