aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-07-14 13:57:16 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-07-14 13:57:16 -0400
commitd9c488d191f2e9c64d0cb570c5acd4f33909a099 (patch)
treefc2bba13fa6881772b292da2b226d58a35e71242
parent9a71e795dc14c401e501125865b2a15fe59f617b (diff)
Fix argument parsing
-rw-r--r--pc.y12
1 files changed, 6 insertions, 6 deletions
diff --git a/pc.y b/pc.y
index f6f4d33..a3a5df9 100644
--- a/pc.y
+++ b/pc.y
@@ -162,20 +162,20 @@ sub_prog_head
;
arguments
- :id_list ':' type
- {
- }
- |param_list ';' id_list ':' type
+ :'(' param_list ')'
{
}
+ |/*empty*/
;
param_list
:id_list ':' type
{
}
- |param_list ':' type
- ;
+ |param_list ';' id_list ':' type
+ {
+ }
+;
compound_statement
:BEG opt_statements END