Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:11:11

0001 ///////////////////////////////////////////////////////////////////////////////
0002 // parser_enum.hpp
0003 //
0004 //  Copyright 2008 Eric Niebler. Distributed under the Boost
0005 //  Software License, Version 1.0. (See accompanying file
0006 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0007 
0008 #ifndef BOOST_XPRESSIVE_DETAIL_DYNAMIC_PARSER_ENUM_HPP_EAN_10_04_2005
0009 #define BOOST_XPRESSIVE_DETAIL_DYNAMIC_PARSER_ENUM_HPP_EAN_10_04_2005
0010 
0011 // MS compatible compilers support #pragma once
0012 #if defined(_MSC_VER)
0013 # pragma once
0014 #endif
0015 
0016 namespace boost { namespace xpressive { namespace regex_constants
0017 {
0018 
0019 ///////////////////////////////////////////////////////////////////////////////
0020 // compiler_token_type
0021 //
0022 enum compiler_token_type
0023 {
0024     token_literal,
0025     token_any,                          // .
0026     token_escape,                       //
0027     token_group_begin,                  // (
0028     token_group_end,                    // )
0029     token_alternate,                    // |
0030     token_invalid_quantifier,           // {
0031     token_charset_begin,                // [
0032     token_charset_end,                  // ]
0033     token_charset_invert,               // ^
0034     token_charset_hyphen,               // -
0035     token_charset_backspace,            // \b
0036     token_posix_charset_begin,          // [:
0037     token_posix_charset_end,            // :]
0038     token_equivalence_class_begin,      // [=
0039     token_equivalence_class_end,        // =]
0040     token_collation_element_begin,      // [.
0041     token_collation_element_end,        // .]
0042 
0043     token_quote_meta_begin,             // \Q
0044     token_quote_meta_end,               // \E
0045 
0046     token_no_mark,                      // ?:
0047     token_positive_lookahead,           // ?=
0048     token_negative_lookahead,           // ?!
0049     token_positive_lookbehind,          // ?<=
0050     token_negative_lookbehind,          // ?<!
0051     token_independent_sub_expression,   // ?>
0052     token_comment,                      // ?#
0053     token_recurse,                      // ?R
0054     token_rule_assign,                  // ?$[name]=
0055     token_rule_ref,                     // ?$[name]
0056     token_named_mark,                   // ?P<name>
0057     token_named_mark_ref,               // ?P=name
0058 
0059     token_assert_begin_sequence,        // \A
0060     token_assert_end_sequence,          // \Z
0061     token_assert_begin_line,            // ^
0062     token_assert_end_line,              // $
0063     token_assert_word_begin,            // \<
0064     token_assert_word_end,              // \>
0065     token_assert_word_boundary,         // \b
0066     token_assert_not_word_boundary,     // \B
0067 
0068     token_escape_newline,               // \n
0069     token_escape_escape,                // \e
0070     token_escape_formfeed,              // \f
0071     token_escape_horizontal_tab,        // \t
0072     token_escape_vertical_tab,          // \v
0073     token_escape_bell,                  // \a
0074     token_escape_control,               // \c
0075 
0076     token_end_of_pattern
0077 };
0078 
0079 }}} // namespace boost::xpressive::regex_constants
0080 
0081 #endif