1 /*=============================================================================
2 Copyright (c) 2001-2014 Joel de Guzman
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 =============================================================================*/
7 #if !defined(BOOST_SPIRIT_X3_CALC8_COMMON_HPP)
8 #define BOOST_SPIRIT_X3_CALC8_COMMON_HPP
10 #include <boost/spirit/home/x3.hpp>
12 namespace client { namespace parser
19 struct identifier_class;
20 typedef x3::rule<identifier_class, std::string> identifier_type;
21 identifier_type const identifier = "identifier";
23 auto const identifier_def = raw[lexeme[(alpha | '_') >> *(alnum | '_')]];
25 BOOST_SPIRIT_DEFINE(identifier);