diff --git a/version1.1/nasal_parser.h b/version1.1/nasal_parser.h index 492be1f..2a9aacd 100644 --- a/version1.1/nasal_parser.h +++ b/version1.1/nasal_parser.h @@ -1132,7 +1132,32 @@ void nasal_parser::calculation_expr() else if(this_token.type==__number || this_token.type==__string) ; else if(this_token.type==__left_curve) + { + get_token(); + if(this_token.type==__func)// lambda + { + function_generate_expr(); + get_token(); + if(this_token.type!=__right_curve) + { + ++error; + std::cout<<">>[Error] line "<>[Error] line "<