X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/68e11668e4b4c3cd9564b6a920656ace3768ec59..506ffb1f7442541ace4623e03d9ba2a6f32a663e:/tests/regression.at?ds=sidebyside diff --git a/tests/regression.at b/tests/regression.at index c199ecc1..dd87ef2d 100644 --- a/tests/regression.at +++ b/tests/regression.at @@ -1,5 +1,5 @@ # Bison Regressions. -*- Autotest -*- -# Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc. +# Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -319,9 +319,9 @@ int yylex (void); %} [%token MYEOF 0 "end of file" %token 'a' "a" -%token b "b" -%token c 'c' -%token 'd' d +%token B_TOKEN "b" +%token C_TOKEN 'c' +%token 'd' D_TOKEN %% exp: "a"; ]]) @@ -727,15 +727,16 @@ member: STRING AT_LALR1_CC_IF( [/* A C++ error reporting function. */ void -yy::Parser::error_ () +yy::parser::error (const location&, const std::string& m) { - std::cerr << message << std::endl; + std::cerr << m << std::endl; } int -yyparse (void) +yyparse () { - yy::Parser parser (!!YYDEBUG); + yy::parser parser; + parser.set_debug_level (!!YYDEBUG); return parser.parse (); } ],