In kelbt 0.13 the eof token is prefixed with the parser name. Also updated the
authorthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Tue, 7 Oct 2008 02:25:13 +0000 (02:25 +0000)
committerthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Tue, 7 Oct 2008 02:25:13 +0000 (02:25 +0000)
copyright year for -v, --version.

git-svn-id: http://svn.complang.org/ragel/trunk@481 052ea7fc-9027-0410-9066-f65837a77df0

ragel/main.cpp
ragel/parsedata.cpp
redfsm/xmlscan.rl

index 9cef28b..ea1605a 100644 (file)
@@ -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);
 }
 
index 73f52c6..0dfaac4 100644 (file)
@@ -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 )
index 721fbd3..1b09941 100644 (file)
@@ -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 ) {