gram.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. typedef union {
  2. char *str;
  3. int n;
  4. double x;
  5. struct { double x, y; } pair;
  6. struct { double x; char *body; } if_data;
  7. struct { char *str; const char *filename; int lineno; } lstr;
  8. struct { double *v; int nv; int maxv; } dv;
  9. struct { double val; int is_multiplicative; } by;
  10. place pl;
  11. object *obj;
  12. corner crn;
  13. path *pth;
  14. object_spec *spec;
  15. saved_state *pstate;
  16. graphics_state state;
  17. object_type obtype;
  18. } YYSTYPE;
  19. #define LABEL 257
  20. #define VARIABLE 258
  21. #define NUMBER 259
  22. #define TEXT 260
  23. #define COMMAND_LINE 261
  24. #define DELIMITED 262
  25. #define ORDINAL 263
  26. #define TH 264
  27. #define LEFT_ARROW_HEAD 265
  28. #define RIGHT_ARROW_HEAD 266
  29. #define DOUBLE_ARROW_HEAD 267
  30. #define LAST 268
  31. #define UP 269
  32. #define DOWN 270
  33. #define LEFT 271
  34. #define RIGHT 272
  35. #define BOX 273
  36. #define CIRCLE 274
  37. #define ELLIPSE 275
  38. #define ARC 276
  39. #define LINE 277
  40. #define ARROW 278
  41. #define MOVE 279
  42. #define SPLINE 280
  43. #define HEIGHT 281
  44. #define RADIUS 282
  45. #define WIDTH 283
  46. #define DIAMETER 284
  47. #define FROM 285
  48. #define TO 286
  49. #define AT 287
  50. #define WITH 288
  51. #define BY 289
  52. #define THEN 290
  53. #define DOTTED 291
  54. #define DASHED 292
  55. #define CHOP 293
  56. #define SAME 294
  57. #define INVISIBLE 295
  58. #define LJUST 296
  59. #define RJUST 297
  60. #define ABOVE 298
  61. #define BELOW 299
  62. #define OF 300
  63. #define THE 301
  64. #define WAY 302
  65. #define BETWEEN 303
  66. #define AND 304
  67. #define HERE 305
  68. #define DOT_N 306
  69. #define DOT_E 307
  70. #define DOT_W 308
  71. #define DOT_S 309
  72. #define DOT_NE 310
  73. #define DOT_SE 311
  74. #define DOT_NW 312
  75. #define DOT_SW 313
  76. #define DOT_C 314
  77. #define DOT_START 315
  78. #define DOT_END 316
  79. #define DOT_X 317
  80. #define DOT_Y 318
  81. #define DOT_HT 319
  82. #define DOT_WID 320
  83. #define DOT_RAD 321
  84. #define SIN 322
  85. #define COS 323
  86. #define ATAN2 324
  87. #define LOG 325
  88. #define EXP 326
  89. #define SQRT 327
  90. #define K_MAX 328
  91. #define K_MIN 329
  92. #define INT 330
  93. #define RAND 331
  94. #define SRAND 332
  95. #define COPY 333
  96. #define THRU 334
  97. #define TOP 335
  98. #define BOTTOM 336
  99. #define UPPER 337
  100. #define LOWER 338
  101. #define SH 339
  102. #define PRINT 340
  103. #define CW 341
  104. #define CCW 342
  105. #define FOR 343
  106. #define DO 344
  107. #define IF 345
  108. #define ELSE 346
  109. #define ANDAND 347
  110. #define OROR 348
  111. #define NOTEQUAL 349
  112. #define EQUALEQUAL 350
  113. #define LESSEQUAL 351
  114. #define GREATEREQUAL 352
  115. #define LEFT_CORNER 353
  116. #define RIGHT_CORNER 354
  117. #define CENTER 355
  118. #define END 356
  119. #define START 357
  120. #define RESET 358
  121. #define UNTIL 359
  122. #define PLOT 360
  123. #define THICKNESS 361
  124. #define FILL 362
  125. #define ALIGNED 363
  126. #define SPRINTF 364
  127. #define COMMAND 365
  128. #define DEFINE 366
  129. #define UNDEF 367
  130. extern YYSTYPE yylval;