Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53603 - trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser
From: jamin.hanson_at_[hidden]
Date: 2009-06-03 12:33:41


Author: ben_hanson
Date: 2009-06-03 12:33:39 EDT (Wed, 03 Jun 2009)
New Revision: 53603
URL: http://svn.boost.org/trac/boost/changeset/53603

Log:
Throw exception if '/' is encountered (lookahead operator).
Text files modified:
   trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser/re_tokeniser.hpp | 3 +++
   1 files changed, 3 insertions(+), 0 deletions(-)

Modified: trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser/re_tokeniser.hpp
==============================================================================
--- trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser/re_tokeniser.hpp (original)
+++ trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser/re_tokeniser.hpp 2009-06-03 12:33:39 EDT (Wed, 03 Jun 2009)
@@ -191,6 +191,9 @@
                     charset (state_, map_, token_);
                     break;
                 }
+ case '/':
+ throw runtime_error("Lookahead ('/') is not supported yet.");
+ break;
                 default:
                     if ((state_._flags & icase) &&
                         (std::isupper (ch_, state_._locale) ||


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk