Added short form lambda: (x) : { x + 10 }. Fixed eval sample

This commit is contained in:
Jonathan Turner
2009-06-21 00:35:45 +00:00
parent 9f13858482
commit 75431a052b
3 changed files with 4 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ namespace chaiscript
Square_Open, Square_Close, Curly_Open, Curly_Close, Comma, Quoted_String, Single_Quoted_String, Carriage_Return, Semicolon,
Function_Def, Lambda_Def, Scoped_Block, Statement, Equation, Return, Expression, Term, Factor, Negate, Not, Comment,
Value, Fun_Call, Method_Call, Comparison, If_Block, While_Block, Boolean, Real_Number, Array_Call, Variable_Decl, Array_Init, Map_Init,
For_Block, Prefix, Break, Map_Pair }; };
For_Block, Prefix, Break, Map_Pair}; };
const char *tokentype_to_string(int tokentype) {
const char *token_types[] = {"File", "Whitespace", "Identifier", "Integer", "Operator", "Parens_Open", "Parens_Close",