[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[certi-cvs] certi/libCERTI syntax.yy
From: |
CERTI CVS commits |
Subject: |
[certi-cvs] certi/libCERTI syntax.yy |
Date: |
Thu, 29 Dec 2011 17:59:28 +0000 |
CVSROOT: /sources/certi
Module name: certi
Changes by: Eric NOULARD <erk> 11/12/29 17:59:28
Modified files:
libCERTI : syntax.yy
Log message:
Enable improved syntax error reporting
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/libCERTI/syntax.yy?cvsroot=certi&r1=3.9&r2=3.10
Patches:
Index: syntax.yy
===================================================================
RCS file: /sources/certi/certi/libCERTI/syntax.yy,v
retrieving revision 3.9
retrieving revision 3.10
diff -u -b -r3.9 -r3.10
--- syntax.yy 9 Nov 2010 12:43:31 -0000 3.9
+++ syntax.yy 29 Dec 2011 17:59:28 -0000 3.10
@@ -20,13 +20,14 @@
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
// USA
//
-// $Id: syntax.yy,v 3.9 2010/11/09 12:43:31 erk Exp $
+// $Id: syntax.yy,v 3.10 2011/12/29 17:59:28 erk Exp $
// ----------------------------------------------------------------------------
#include "fed.hh"
#include <iostream>
using std::cout ;
+using std::cerr ;
using std::endl ;
namespace certi {
@@ -74,6 +75,7 @@
%token TRANSPORT
%token TIMESTAMP_TOKEN
+%error-verbose
%start fed
%%
@@ -281,7 +283,7 @@
%%
int yyerror(const char *s) {
- cout << endl << certi::fedparser::fed_filename << ":"
+ cerr << endl << certi::fedparser::fed_filename << ":"
<< certi::fedparser::line_number << ": " << s << endl ;
return 0 ;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [certi-cvs] certi/libCERTI syntax.yy,
CERTI CVS commits <=