From d9c488d191f2e9c64d0cb570c5acd4f33909a099 Mon Sep 17 00:00:00 2001 From: Tucker Evans Date: Sun, 14 Jul 2019 13:57:16 -0400 Subject: Fix argument parsing --- pc.y | 12 ++++++------ 1 file 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 -- cgit v1.1