*/
/* }}} */
-%{
+@if Bison23 %{
+
+@if Bison24 %code top {
#define cyscanner driver.scanner_
#define YYSTACKEXPANDABLE 1
-#define yyerrok (yyerrstatus_ = 0)
-%}
+@if Bison23 #define yyerrok (yyerrstatus_ = 0)
+@if Bison24 }
-%{
+@if Bison24 %code requires {
#include "Parser.hpp"
@begin ObjectiveC
} YYSTYPE;
#define YYSTYPE YYSTYPE
+@if Bison24 }
-%}
-
-%{
+@if Bison24 %code provides {
int cylex(YYSTYPE *, cy::location *, void *);
-%}
+@if Bison24 }
+
+@if Bison23 %}
%name-prefix="cy"
-%skeleton "lalr1.cc"
-%locations
+@if Bison23 %skeleton "lalr1.cc"
+@if Bison24 %language "C++"
%initial-action {
@$.begin.filename = @$.end.filename = &driver.filename_;
};
+%locations
%defines
//%glr-parser