From: thurston Date: Tue, 7 Oct 2008 02:25:13 +0000 (+0000) Subject: In kelbt 0.13 the eof token is prefixed with the parser name. Also updated the X-Git-Tag: 2.0_alpha~105 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=87b6295a37809941fa8852dd752f3ecc8254217a;p=external%2Fragel.git In kelbt 0.13 the eof token is prefixed with the parser name. Also updated the copyright year for -v, --version. git-svn-id: http://svn.complang.org/ragel/trunk@481 052ea7fc-9027-0410-9066-f65837a77df0 --- diff --git a/ragel/main.cpp b/ragel/main.cpp index 9cef28b..ea1605a 100644 --- a/ragel/main.cpp +++ b/ragel/main.cpp @@ -154,7 +154,7 @@ void usage() void version() { cout << "Ragel State Machine Compiler version " VERSION << " " PUBDATE << endl << - "Copyright (c) 2001-2007 by Adrian Thurston" << endl; + "Copyright (c) 2001-2008 by Adrian Thurston" << endl; exit(0); } diff --git a/ragel/parsedata.cpp b/ragel/parsedata.cpp index 73f52c6..0dfaac4 100644 --- a/ragel/parsedata.cpp +++ b/ragel/parsedata.cpp @@ -1453,7 +1453,7 @@ void terminateAllParsers( ) loc.line = 0; loc.col = 0; for ( ParserDict::Iter pdel = parserDict; pdel.lte(); pdel++ ) - pdel->value->token( loc, _eof, 0, 0 ); + pdel->value->token( loc, Parser_tk_eof, 0, 0 ); } void writeLanguage( std::ostream &out ) diff --git a/redfsm/xmlscan.rl b/redfsm/xmlscan.rl index 721fbd3..1b09941 100644 --- a/redfsm/xmlscan.rl +++ b/redfsm/xmlscan.rl @@ -226,7 +226,7 @@ int xml_parse( std::istream &input, const char *fileName, exit(1); } else if ( token == TK_EOF ) { - parser.token( _eof, scanner.token_col, scanner.token_line ); + parser.token( XmlParser_tk_eof, scanner.token_col, scanner.token_line ); break; } else if ( token == TK_ERR ) {