Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

126 lines
2.6 KiB

  1. #ifndef lint
  2. static char yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93";
  3. #endif
  4. #define YYBYACC 1
  5. #define YYMAJOR 1
  6. #define YYMINOR 9
  7. #define yyclearin (yychar=(-1))
  8. #define yyerrok (yyerrflag=0)
  9. #define YYRECOVERING (yyerrflag!=0)
  10. #define _OR 257
  11. #define _AND 258
  12. #define _NOT 259
  13. #define _UMINUS 260
  14. #define mHighest 261
  15. #define _ALL 262
  16. #define _ANY 263
  17. #define _ARRAY 264
  18. #define _AS 265
  19. #define _ASC 266
  20. #define _CAST 267
  21. #define _COERCE 268
  22. #define _CONTAINS 269
  23. #define _CONTENTS 270
  24. #define _CREATE 271
  25. #define _DEEP_TRAVERSAL 272
  26. #define _DESC 273
  27. #define _DOT 274
  28. #define _DOTDOT 275
  29. #define _DOTDOT_SCOPE 276
  30. #define _DOTDOTDOT 277
  31. #define _DOTDOTDOT_SCOPE 278
  32. #define _DROP 279
  33. #define _EXCLUDE_SEARCH_TRAVERSAL 280
  34. #define _FALSE 281
  35. #define _FREETEXT 282
  36. #define _FROM 283
  37. #define _IS 284
  38. #define _ISABOUT 285
  39. #define _IS_NOT 286
  40. #define _LIKE 287
  41. #define _MATCHES 288
  42. #define _NEAR 289
  43. #define _NOT_LIKE 290
  44. #define _NULL 291
  45. #define _OF 292
  46. #define _ORDER_BY 293
  47. #define _PASSTHROUGH 294
  48. #define _PROPERTYNAME 295
  49. #define _PROPID 296
  50. #define _RANKMETHOD 297
  51. #define _SELECT 298
  52. #define _SET 299
  53. #define _SCOPE 300
  54. #define _SHALLOW_TRAVERSAL 301
  55. #define _FORMSOF 302
  56. #define _SOME 303
  57. #define _TABLE 304
  58. #define _TRUE 305
  59. #define _TYPE 306
  60. #define _UNION 307
  61. #define _UNKNOWN 308
  62. #define _URL 309
  63. #define _VIEW 310
  64. #define _WHERE 311
  65. #define _WEIGHT 312
  66. #define _GE 313
  67. #define _LE 314
  68. #define _NE 315
  69. #define _CONST 316
  70. #define _ID 317
  71. #define _TEMPVIEW 318
  72. #define _INTNUM 319
  73. #define _REALNUM 320
  74. #define _SCALAR_FUNCTION_REF 321
  75. #define _STRING 322
  76. #define _DATE 323
  77. #define _PREFIX_STRING 324
  78. #define _DELIMITED_ID 325
  79. #ifdef YYSTACKSIZE
  80. #undef YYMAXDEPTH
  81. #define YYMAXDEPTH YYSTACKSIZE
  82. #else
  83. #ifdef YYMAXDEPTH
  84. #define YYSTACKSIZE YYMAXDEPTH
  85. #else
  86. #define YYSTACKSIZE 500
  87. #define YYMAXDEPTH 500
  88. #endif
  89. #endif
  90. #define INITSTACKSIZE 30
  91. class YYPARSER : public CYYBase
  92. {
  93. friend class YYLEXER;
  94. public:
  95. YYPARSER(CImpIParserSession* pParserSession, CImpIParserTreeProperties* pParserTreeProperties, YYLEXER & yylex);
  96. ~YYPARSER() {}
  97. void ResetParser(); // Use to possibly restart parser
  98. int Parse();
  99. #ifdef YYAPI_VALUETYPE
  100. YYAPI_VALUETYPE GetParseTree() // Get result of parse
  101. {
  102. return yyval;
  103. }
  104. #endif
  105. void EmptyValueStack( YYAPI_VALUETYPE yylval );
  106. void PopVs();
  107. private:
  108. int yydebug;
  109. int yynerrs;
  110. int yyerrflag;
  111. int yychar;
  112. short *yyssp;
  113. YYSTYPE *yyvsp;
  114. YYSTYPE yyval;
  115. YYSTYPE yylval;
  116. XGrowable<short, INITSTACKSIZE> xyyss;
  117. CDynArrayInPlace<YYSTYPE> xyyvs;
  118. };
  119. #define yystacksize YYSTACKSIZE