check in of reserved word handling

This commit is contained in:
Jason Turner
2009-08-25 00:36:02 +00:00
parent 0b780593a6
commit 541e453098
2 changed files with 53 additions and 8 deletions

View File

@@ -157,6 +157,13 @@ namespace chaiscript
*/
void build_eval_system() {
using namespace bootstrap;
engine.add_reserved_word("def");
engine.add_reserved_word("fun");
engine.add_reserved_word("while");
engine.add_reserved_word("for");
engine.add_reserved_word("if");
engine.add_reserved_word("else");
engine.add(Bootstrap::bootstrap());
engine.add(fun(boost::function<void ()>(boost::bind(&dump_system, boost::ref(engine)))), "dump_system");