Added guarded exception catches
This commit is contained in:
@@ -41,7 +41,7 @@ namespace chaiscript
|
||||
class Token_Type { public: enum Type { Error, Int, Float, Id, Char, Str, Eol, Fun_Call, Inplace_Fun_Call, Arg_List, Variable, Equation, Var_Decl,
|
||||
Expression, Comparison, Additive, Multiplicative, Negate, Not, Array_Call, Dot_Access, Quoted_String, Single_Quoted_String,
|
||||
Lambda, Block, Def, While, If, For, Inline_Array, Inline_Map, Return, File, Prefix, Break, Map_Pair, Value_Range,
|
||||
Inline_Range, Annotation, Try }; };
|
||||
Inline_Range, Annotation, Try, Catch }; };
|
||||
|
||||
/**
|
||||
* Helper lookup to get the name of each node type
|
||||
@@ -50,7 +50,7 @@ namespace chaiscript
|
||||
const char *token_types[] = { "Internal Parser Error", "Int", "Float", "Id", "Char", "Str", "Eol", "Fun_Call", "Inplace_Fun_Call", "Arg_List", "Variable", "Equation", "Var_Decl",
|
||||
"Expression", "Comparison", "Additive", "Multiplicative", "Negate", "Not", "Array_Call", "Dot_Access", "Quoted_String", "Single_Quoted_String",
|
||||
"Lambda", "Block", "Def", "While", "If", "For", "Inline_Array", "Inline_Map", "Return", "File", "Prefix", "Break", "Map_Pair", "Value_Range",
|
||||
"Inline_Range", "Annotation", "Try"};
|
||||
"Inline_Range", "Annotation", "Try", "Catch"};
|
||||
|
||||
return token_types[tokentype];
|
||||
}
|
||||
|
Reference in New Issue
Block a user