annotate DEPENDENCIES/generic/include/boost/wave/cpplexer/re2clex/scanner.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 /*=============================================================================
Chris@16 2 Boost.Wave: A Standard compliant C++ preprocessor library
Chris@16 3
Chris@16 4 http://www.boost.org/
Chris@16 5
Chris@16 6 Copyright (c) 2001 Daniel C. Nuffer.
Chris@16 7 Copyright (c) 2001-2012 Hartmut Kaiser.
Chris@16 8 Distributed under the Boost Software License, Version 1.0. (See accompanying
Chris@16 9 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 10 =============================================================================*/
Chris@16 11
Chris@16 12 #if !defined(SCANNER_HPP_F4FB01EB_E75C_4537_A146_D34B9895EF37_INCLUDED)
Chris@16 13 #define SCANNER_HPP_F4FB01EB_E75C_4537_A146_D34B9895EF37_INCLUDED
Chris@16 14
Chris@16 15 #include <boost/wave/wave_config.hpp>
Chris@16 16 #include <boost/wave/cpplexer/re2clex/aq.hpp>
Chris@16 17
Chris@16 18 // this must occur after all of the includes and before any code appears
Chris@16 19 #ifdef BOOST_HAS_ABI_HEADERS
Chris@16 20 #include BOOST_ABI_PREFIX
Chris@16 21 #endif
Chris@16 22
Chris@16 23 ///////////////////////////////////////////////////////////////////////////////
Chris@16 24 namespace boost {
Chris@16 25 namespace wave {
Chris@16 26 namespace cpplexer {
Chris@16 27 namespace re2clex {
Chris@16 28
Chris@16 29 struct Scanner;
Chris@16 30 typedef unsigned char uchar;
Chris@16 31 typedef int (* ReportErrorProc)(struct Scanner const *, int errorcode,
Chris@16 32 char const *, ...);
Chris@16 33
Chris@16 34 typedef struct Scanner {
Chris@16 35 uchar* first; /* start of input buffer */
Chris@16 36 uchar* act; /* act position of input buffer */
Chris@16 37 uchar* last; /* end (one past last char) of input buffer */
Chris@16 38 uchar* bot; /* beginning of the current buffer */
Chris@16 39 uchar* top; /* top of the current buffer */
Chris@16 40 uchar* eof; /* when we read in the last buffer, will point 1 past the
Chris@16 41 end of the file, otherwise 0 */
Chris@16 42 uchar* tok; /* points to the beginning of the current token */
Chris@16 43 uchar* ptr; /* used for YYMARKER - saves backtracking info */
Chris@16 44 uchar* cur; /* saves the cursor (maybe is redundant with tok?) */
Chris@16 45 uchar* lim; /* used for YYLIMIT - points to the end of the buffer */
Chris@16 46 /* (lim == top) except for the last buffer, it points to
Chris@16 47 the end of the input (lim == eof - 1) */
Chris@16 48 std::size_t line; /* current line being lex'ed */
Chris@16 49 std::size_t column; /* current token start column position */
Chris@16 50 std::size_t curr_column; /* current column position */
Chris@16 51 ReportErrorProc error_proc; /* must be != 0, this function is called to
Chris@16 52 report an error */
Chris@16 53 char const *file_name; /* name of the lex'ed file */
Chris@16 54 aq_queue eol_offsets;
Chris@16 55 bool enable_ms_extensions; /* enable MS extensions */
Chris@16 56 bool act_in_c99_mode; /* lexer works in C99 mode */
Chris@16 57 bool detect_pp_numbers; /* lexer should prefer to detect pp-numbers */
Chris@16 58 bool enable_import_keyword; /* recognize import as a keyword */
Chris@16 59 bool single_line_only; /* don't report missing eol's in C++ comments */
Chris@16 60 bool act_in_cpp0x_mode; /* lexer works in C++11 mode */
Chris@16 61 } Scanner;
Chris@16 62
Chris@16 63 ///////////////////////////////////////////////////////////////////////////////
Chris@16 64 } // namespace re2clex
Chris@16 65 } // namespace cpplexer
Chris@16 66 } // namespace wave
Chris@16 67 } // namespace boost
Chris@16 68
Chris@16 69 // the suffix header occurs after all of the code
Chris@16 70 #ifdef BOOST_HAS_ABI_HEADERS
Chris@16 71 #include BOOST_ABI_SUFFIX
Chris@16 72 #endif
Chris@16 73
Chris@16 74 #endif // !defined(SCANNER_HPP_F4FB01EB_E75C_4537_A146_D34B9895EF37_INCLUDED)