aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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