Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
cpplexer_exceptions.hpp File Reference
#include <exception>
#include <string>
#include <boost/assert.hpp>
#include <boost/config.hpp>
#include <boost/throw_exception.hpp>
#include <boost/wave/wave_config.hpp>
#include <sstream>
Include dependency graph for cpplexer_exceptions.hpp:
This graph shows which files directly or indirectly include this file:

Classes

class  boost::wave::cpplexer::cpplexer_exception
 
class  boost::wave::cpplexer::lexing_exception
 

Namespaces

 boost
 Duration formatting facet for input.
 
 boost::wave
 
 boost::wave::cpplexer
 
 boost::wave::cpplexer::util
 

Macros

#define BOOST_WAVE_LEXER_THROW(cls, code, msg, line, column, name)
 
#define BOOST_WAVE_LEXER_THROW_VAR(cls, codearg, msg, line, column, name)
 

Enumerations

enum  boost::wave::cpplexer::util::severity {
  boost::wave::cpplexer::util::severity_remark = 0,
  boost::wave::cpplexer::util::severity_warning,
  boost::wave::cpplexer::util::severity_error,
  boost::wave::cpplexer::util::severity_fatal
}
 

Functions

char const * boost::wave::cpplexer::util::get_severity (severity level)
 
bool boost::wave::cpplexer::is_recoverable (lexing_exception const &e)
 

Macro Definition Documentation

#define BOOST_WAVE_LEXER_THROW (   cls,
  code,
  msg,
  line,
  column,
  name 
)
Value:
{ \
using namespace boost::wave; \
std::stringstream stream; \
stream << cls::severity_text(cls::code) << ": " \
<< cls::error_text(cls::code); \
if ((msg)[0] != 0) stream << ": " << (msg); \
stream << std::ends; \
boost::throw_exception(cls(stream.str().c_str(), cls::code, line, column, \
name)); \
} \
Duration formatting facet for input.
Definition: accumulators_fwd.hpp:55
const int name
Definition: gzip.hpp:94
Analyse the text for positions suitable for line breaks.
Definition: types.hpp:43
if(num_vertices(iG)!=num_vertices(vG)) return
STL namespace.
exception_code code
Definition: archive_exception.hpp:80
function< op::str >::type const str
str is a lazy PolymorphicFunctionObject for converting a xpressive::sub_match<> to a std::basic_strin...
Definition: regex_actions.hpp:994
BOOST_UBLAS_INLINE matrix_column< M > column(M &data, typename M::size_type j)
Definition: matrix_proxy.hpp:954
const lambda_functor< lambda_functor_base< action< 1, throw_action< throw_new_action > >, tuple< typename const_copy_argument< const Arg1 >::type > > > throw_exception(const Arg1 &a1)
Definition: exceptions.hpp:279
const stream_type stream
Stream placeholder in formatter template expressions.
Definition: stream.hpp:40
Definition: cpp_context.hpp:52

Referenced by boost::wave::cpplexer::re2clex::lexer< IteratorT, PositionT, TokenT >::get(), boost::wave::cpplexer::impl::validate_identifier_name(), and boost::wave::cpplexer::impl::validate_literal().

#define BOOST_WAVE_LEXER_THROW_VAR (   cls,
  codearg,
  msg,
  line,
  column,
  name 
)
Value:
{ \
using namespace boost::wave; \
cls::error_code code = static_cast<cls::error_code>(codearg); \
std::stringstream stream; \
stream << cls::severity_text(code) << ": " \
<< cls::error_text(code); \
if ((msg)[0] != 0) stream << ": " << (msg); \
stream << std::ends; \
boost::throw_exception(cls(stream.str().c_str(), code, line, column, \
name)); \
} \
error_code
Definition: safe_mode_errors.hpp:28
Duration formatting facet for input.
Definition: accumulators_fwd.hpp:55
const int name
Definition: gzip.hpp:94
Analyse the text for positions suitable for line breaks.
Definition: types.hpp:43
if(num_vertices(iG)!=num_vertices(vG)) return
STL namespace.
exception_code code
Definition: archive_exception.hpp:80
function< op::str >::type const str
str is a lazy PolymorphicFunctionObject for converting a xpressive::sub_match<> to a std::basic_strin...
Definition: regex_actions.hpp:994
BOOST_UBLAS_INLINE matrix_column< M > column(M &data, typename M::size_type j)
Definition: matrix_proxy.hpp:954
const lambda_functor< lambda_functor_base< action< 1, throw_action< throw_new_action > >, tuple< typename const_copy_argument< const Arg1 >::type > > > throw_exception(const Arg1 &a1)
Definition: exceptions.hpp:279
const stream_type stream
Stream placeholder in formatter template expressions.
Definition: stream.hpp:40
Definition: cpp_context.hpp:52

Referenced by boost::wave::cpplexer::re2clex::lexer< IteratorT, PositionT, TokenT >::report_error().