1 #ifndef MYPARSER_COMMON_HPP
2 #define MYPARSER_COMMON_HPP
6 #if !defined(MYPARSER_CUSTOMIZED)
8 #define MYPARSER_AST_CCC
10 #if defined(__GNUC__) || defined(__clang__)
11 #define MYPARSER_FORCE_INLINE
15 #if defined(__GLIBCXX__)
16 #define MYPARSER_BOOST_XPRESSIVE
18 #define MYPARSER_STD_REGEX
30 #if defined(MYPARSER_BOOST_REGEX)
31 #include <boost/regex.hpp>
32 namespace regex_lib = boost;
33 #elif defined(MYPARSER_BOOST_XPRESSIVE)
34 #include <boost/xpressive/xpressive_dynamic.hpp>
35 namespace regex_lib = boost::xpressive;
36 #elif defined(MYPARSER_STD_REGEX)
38 namespace regex_lib = std;
43 #if defined(MYPARSER_AST_CCC)
47 #if defined(MYPARSER_FORCE_INLINE)
48 #define MYPARSER_INLINE __attribute__((__always_inline__)) inline
50 #define MYPARSER_INLINE inline
55 #if defined(MYPARSER_DEBUG)
58 std::cerr << value << std::endl;
65 #if defined(MYPARSER_AST_CCC)
Definition: myparser_common.hpp:83
Definition: myparser_common.hpp:82
void mpDebug(T value)
Definition: myparser_common.hpp:57
Definition: myparser_common.hpp:84
const auto style_keyword
Definition: myparser_common.hpp:67
Definition: myparser_common.hpp:86
const auto style_error
Definition: myparser_common.hpp:68
const auto style_normal
Definition: myparser_common.hpp:71
Definition: myparser_common.hpp:81
Definition: myparser_common.hpp:92
const auto style_faint
Definition: myparser_common.hpp:70
const auto style_index
Definition: myparser_common.hpp:66