diff options
-rw-r--r-- | sem_check.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sem_check.c b/sem_check.c index af97507..77803e1 100644 --- a/sem_check.c +++ b/sem_check.c @@ -189,6 +189,9 @@ ptree *t; if (!(t->l && t->l->attr.nval && t->l->attr.nval->func_info)) yyerror("Incorrect Call Tree\n"); + if (!(strcmp(t->l->attr.nval->name, "write") && strcmp(t->l->attr.nval->name, "read"))) + return; + argc = t->l->attr.nval->func_info->argc; if (t->l->attr.nval->func_info->argc != count_args(t->r)) /*TODO add info about expected argument count*/ |