2
0
mirror of https://github.com/boostorg/spirit.git synced 2026-01-19 04:42:11 +00:00

more simplifications.

This commit is contained in:
Joel de Guzman
2014-05-03 05:43:50 +08:00
parent 0f972edcfa
commit 1b95f8ee78
2 changed files with 4 additions and 9 deletions

View File

@@ -11,16 +11,11 @@
namespace client
{
///////////////////////////////////////////////////////////////////////////////
// rule IDs
///////////////////////////////////////////////////////////////////////////////
typedef x3::identity<class expression> expression_id;
typedef x3::identity<class term> term_id;
typedef x3::identity<class factor> factor_id;
///////////////////////////////////////////////////////////////////////////////
// Our error handler
///////////////////////////////////////////////////////////////////////////////
typedef x3::identity<class expression> expression_id;
template <typename Iterator, typename Exception, typename Context>
x3::error_handler_result
on_error(

View File

@@ -10,7 +10,7 @@ namespace client
{
typedef std::string::const_iterator iterator_type;
typedef x3::ascii::space_type const skipper_type;
typedef x3::ascii::space_type const skipper_type;
typedef x3::any_parser<
iterator_type, ast::expression
, x3::context<x3::skipper_tag, skipper_type>>
@@ -18,5 +18,5 @@ namespace client
template
expression_type
expression<iterator_type, skipper_type>();
expression<iterator_type, skipper_type>();
}