Finish parser
This commit is contained in:
parent
7fe919950f
commit
eaa2740d63
|
@ -217,6 +217,8 @@ void nasal_parser::function_generate_expr()
|
||||||
std::cout<<">>[Error] line "<<this_token.line<<": expect a ',' or ')' when creating a new function."<<std::endl;
|
std::cout<<">>[Error] line "<<this_token.line<<": expect a ',' or ')' when creating a new function."<<std::endl;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
else if(this_token.type==__right_curve)
|
||||||
|
parse.push(this_token);
|
||||||
}
|
}
|
||||||
else if(this_token.type==__dynamic_id)
|
else if(this_token.type==__dynamic_id)
|
||||||
{
|
{
|
||||||
|
@ -227,6 +229,7 @@ void nasal_parser::function_generate_expr()
|
||||||
std::cout<<">>[Error] line "<<this_token.line<<": only ')' can be put after dynamic identifier."<<std::endl;
|
std::cout<<">>[Error] line "<<this_token.line<<": only ')' can be put after dynamic identifier."<<std::endl;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
parse.push(this_token);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -234,6 +237,7 @@ void nasal_parser::function_generate_expr()
|
||||||
std::cout<<">>[Error] line "<<this_token.line<<": expect identifiers and dynamic identifier only."<<std::endl;
|
std::cout<<">>[Error] line "<<this_token.line<<": expect identifiers and dynamic identifier only."<<std::endl;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
get_token();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue