aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-10-15 18:40:33 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-10-15 18:40:33 -0400
commit85f3229e2811b75047c563d23ae3f51db17d4dd3 (patch)
treef46e2fb7599d60e8b06ec588550adf5b26342ebd
parentba8fb6d6b6c0c16c056437404de7939cecc9c2cd (diff)
Fix grammer conflicts
-rw-r--r--pc.y23
1 files changed, 0 insertions, 23 deletions
diff --git a/pc.y b/pc.y
index f619655..e4235b3 100644
--- a/pc.y
+++ b/pc.y
@@ -378,10 +378,6 @@ statement
$$ = mktree(FOR, tmp, $8);
}
- | expr
- {
- $$ = $1;
- }
;
ifelse
:IF expr THEN statement
@@ -447,15 +443,6 @@ proc_statement
free($1);
}
- |ID '(' ')'
- {
- node *tmp;
-
- tmp = check_exists(cur_scope, $1);
- $$ = mktree(PCALL, mkid(tmp), NULL);
-
- free($1);
- }
/*calls checked with proc_statement*/
;
@@ -531,16 +518,6 @@ factor
free($1);
}
- | ID '(' ')'
- {
- node *tmp;
-
- tmp = check_exists(cur_scope, $1);
- $$ = mktree(FCALL, mkid(tmp), NULL);
- check_call($$);
-
- free($1);
- }
|INUM
{
$$ = mkinum($1);