--- parser3/src/main/compile.y 2026/04/23 18:50:11 1.302 +++ parser3/src/main/compile.y 2026/10/04 21:03:35 1.306 @@ -2,13 +2,13 @@ /** @file Parser: compiler(lexical parser and grammar). - Copyright (c) 2001-2024 Art. Lebedev Studio (http://www.artlebedev.com) + Copyright (c) 2001-2026 Art. Lebedev Studio (https://www.artlebedev.com) Authors: Konstantin Morshnev , Alexandr Petrosian */ -volatile const char * IDENT_COMPILE_Y = "$Id: compile.y,v 1.302 2026/04/23 18:50:11 moko Exp $"; +volatile const char * IDENT_COMPILE_Y = "$Id: compile.y,v 1.306 2026/10/04 21:03:35 moko Exp $"; /** @todo parser4: @@ -23,7 +23,6 @@ volatile const char * IDENT_COMPILE_Y = #define YYSTYPE ArrayOperation* #define YYDEBUG 1 -#define YYERROR_VERBOSE 1 #define yyerror(pc, msg) real_yyerror(pc, msg) #define YYPRINT(file, type, value) yyprint(file, type, value) #define YYMALLOC pa_malloc @@ -39,6 +38,11 @@ volatile const char * IDENT_COMPILE_Y = #include "pa_globals.h" #include "pa_vmethod_frame.h" +// Windows headers define IN +#ifdef IN +#undef IN +#endif + // defines #define CLASS_NAME "CLASS" @@ -79,7 +83,8 @@ static const VString vempty; %} -%pure-parser +%define api.pure +%define parse.error verbose %lex-param {Parse_control* pc} %parse-param {Parse_control* pc}