X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/932b0c960a8187ed1309d21ffd68b0cf83802791..87412882128fc3ae807f47db23884552f5841e74:/etc/bench.pl.in diff --git a/etc/bench.pl.in b/etc/bench.pl.in index cf4815ef..2290fd28 100755 --- a/etc/bench.pl.in +++ b/etc/bench.pl.in @@ -1,6 +1,6 @@ #! /usr/bin/perl -w -# Copyright (C) 2006, 2008 Free Software Foundation, Inc. +# Copyright (C) 2006, 2008, 2009 Free Software Foundation, Inc. # # This file is part of Bison, the GNU Compiler Compiler. # @@ -688,7 +688,7 @@ yy::parser::token_type yylex(yy::parser::semantic_type* yylval, if (stage == STAGE_MAX) { #if USE_LEX_SYMBOL - return yy::parser::make_END_OF_FILE (yy::location()); + return yy::parser::make_END_OF_FILE (location_type ()); #else *yylloc = location_type (); return token::END_OF_FILE; @@ -697,7 +697,7 @@ yy::parser::token_type yylex(yy::parser::semantic_type* yylval, else if (stage % 2) { #if USE_LEX_SYMBOL - return yy::parser::make_NUMBER (stage, yy::location()); + return yy::parser::make_NUMBER (stage, location_type ()); #else # if defined ONE_STAGE_BUILD yylval->build(stage); @@ -713,7 +713,7 @@ yy::parser::token_type yylex(yy::parser::semantic_type* yylval, else { #if USE_LEX_SYMBOL - return yy::parser::make_TEXT ("A string.", yy::location()); + return yy::parser::make_TEXT ("A string.", location_type ()); #else # if defined ONE_STAGE_BUILD yylval->build(std::string("A string.")); @@ -731,10 +731,9 @@ yy::parser::token_type yylex(yy::parser::semantic_type* yylval, // Mandatory error function void -yy::parser::error(const yy::parser::location_type& yylloc, - const std::string& message) +yy::parser::error(const yy::parser::location_type& loc, const std::string& msg) { - std::cerr << yylloc << ": " << message << std::endl; + std::cerr << loc << ": " << msg << std::endl; } int main(int argc, char *argv[]) @@ -892,7 +891,7 @@ sub bench_push_parser () qw( [ %d api.pure ] & - [ %d api.push_pull=both ] + [ %d api.push-pull=both ] )); }