2010-07-01から1日間の記事一覧

セマンティックアクションでBoost.Lambda

C++

#include <iostream> #include <string> #include <boost/lambda/lambda.hpp> #include <boost/spirit/include/qi.hpp> namespace qi = boost::spirit::qi; using boost::lambda::_1; template <class Expr> bool parse(const std::string& s, const Expr& expr) { std::string::const_iterator first = s.begin(); return …</class></boost/spirit/include/qi.hpp></boost/lambda/lambda.hpp></string></iostream>