Removed legacy concat_string
This commit is contained in:
parent
4739d67c89
commit
e3966eeae1
@ -443,44 +443,4 @@ typedef Rule_Builder<Token_Iterator, Rule, &Ignore_Rule<Token_Iterator, Rule> >
|
|||||||
typedef Rule_Builder<Token_Iterator, int, &Id_Rule<Token_Iterator> > Id;
|
typedef Rule_Builder<Token_Iterator, int, &Id_Rule<Token_Iterator> > Id;
|
||||||
typedef Rule_Builder<Token_Iterator, const std::string&, &String_Rule<Token_Iterator> > Str;
|
typedef Rule_Builder<Token_Iterator, const std::string&, &String_Rule<Token_Iterator> > Str;
|
||||||
|
|
||||||
/*
|
|
||||||
template <typename R>
|
|
||||||
R Str(const std::string &text, bool keep) {
|
|
||||||
return Rule(boost::bind(String_Rule, _1, _2, _3, _4, _5, text), keep);
|
|
||||||
}
|
|
||||||
|
|
||||||
template <typename R>
|
|
||||||
R Id(int id, bool keep) {
|
|
||||||
return Rule(boost::bind(Type_Rule, _1, _2, _3, _4, _5, id), keep);
|
|
||||||
}
|
|
||||||
|
|
||||||
template <typename R>
|
|
||||||
R Str(const std::string &text) {
|
|
||||||
return Rule(boost::bind(String_Rule, _1, _2, _3, _4, _5, text));
|
|
||||||
}
|
|
||||||
|
|
||||||
template <typename R>
|
|
||||||
R Id(int id) {
|
|
||||||
return Rule(boost::bind(Type_Rule, _1, _2, _3, _4, _5, id));
|
|
||||||
}
|
|
||||||
|
|
||||||
template <typename R>
|
|
||||||
R Ign(R rule) {
|
|
||||||
rule.impl->keep = false;
|
|
||||||
|
|
||||||
return rule;
|
|
||||||
}
|
|
||||||
|
|
||||||
template <typename R>
|
|
||||||
R Epsilon(R rule) {
|
|
||||||
return Rule(boost::bind(Epsilon_Rule, _1, _2, _3, _4, _5, rule));
|
|
||||||
}
|
|
||||||
|
|
||||||
template <typename R>
|
|
||||||
R Wrap(R rule) {
|
|
||||||
return Rule(boost::bind(Wrap_Rule, _1, _2, _3, _4, _5, rule));
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* LANGKIT_PARSER_HPP_ */
|
#endif /* LANGKIT_PARSER_HPP_ */
|
||||||
|
@ -24,11 +24,6 @@ template<> void print<bool>(const bool &t)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename String_Type>
|
|
||||||
String_Type concat_string(const String_Type &s1, const String_Type &s2) {
|
|
||||||
return s1+s2;
|
|
||||||
}
|
|
||||||
|
|
||||||
template <typename Eval_Engine>
|
template <typename Eval_Engine>
|
||||||
class Wesley_System {
|
class Wesley_System {
|
||||||
Lexer lexer;
|
Lexer lexer;
|
||||||
@ -206,7 +201,7 @@ public:
|
|||||||
bootstrap(ss);
|
bootstrap(ss);
|
||||||
bootstrap_vector<std::vector<int> >(ss, "VectorInt");
|
bootstrap_vector<std::vector<int> >(ss, "VectorInt");
|
||||||
bootstrap_vector<std::vector<Boxed_Value> >(ss, "Vector");
|
bootstrap_vector<std::vector<Boxed_Value> >(ss, "Vector");
|
||||||
// dump_system(ss);
|
//dump_system(ss);
|
||||||
|
|
||||||
//Register a new function, this one with typing for us, so we don't have to ubox anything
|
//Register a new function, this one with typing for us, so we don't have to ubox anything
|
||||||
//right here
|
//right here
|
||||||
@ -214,7 +209,6 @@ public:
|
|||||||
register_function(ss, &print<std::string>, "print");
|
register_function(ss, &print<std::string>, "print");
|
||||||
register_function(ss, &print<double>, "print");
|
register_function(ss, &print<double>, "print");
|
||||||
register_function(ss, &print<size_t>, "print");
|
register_function(ss, &print<size_t>, "print");
|
||||||
register_function(ss, &concat_string<std::string>, "concat_string");
|
|
||||||
register_function(ss, &print<int>, "print");
|
register_function(ss, &print<int>, "print");
|
||||||
|
|
||||||
ss.register_function(boost::function<void ()>(boost::bind(&dump_system, boost::ref(ss))), "dump_system");
|
ss.register_function(boost::function<void ()>(boost::bind(&dump_system, boost::ref(ss))), "dump_system");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user