working on operator translation

This commit is contained in:
Wolfgang Bumiller 2012-07-20 15:02:49 +02:00
parent 7185366ee5
commit 9f54ea6643

View file

@ -209,6 +209,10 @@ static sy_elem syop(const oper_info *op) {
static bool parser_sy_pop(parser_t *parser, shynt *sy) static bool parser_sy_pop(parser_t *parser, shynt *sy)
{ {
if (!sy->ops_count) {
parseerror(parser, "internal error: missing operator");
return false;
}
return true; return true;
} }