From 75e2d0e78c6bec9bea88ee5162ef53a0c2fee0de Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 25 Oct 2023 00:49:17 +0200 Subject: [PATCH] 470/470 --- flap/src/hopix/hopixParser.mly | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flap/src/hopix/hopixParser.mly b/flap/src/hopix/hopixParser.mly index 06b288f..3b36602 100644 --- a/flap/src/hopix/hopixParser.mly +++ b/flap/src/hopix/hopixParser.mly @@ -289,6 +289,7 @@ simple_expression: (* S'il y a qu'1 élément, alors c'est juste une expression *) match el with | [alone] -> Position.value alone | _ -> Tuple(el) } + mid_expression: | e=simple_expression { e @@ -306,15 +307,14 @@ mid_expression: | EXCLA e=located(simple_expression) { Read(e) } -/* Record - Construction d'un enregistrement */ +/* Record - Construction d'un enregistrement */ | LBRACE l=separated_nonempty_list( COMMA, - separated_pair(located(label_identifier), EQUAL, located(expression)) + separated_pair(located(label_identifier), EQUAL, located(mid_expression)) ) RBRACE tl=option(type_list) { Record(l, tl) } - expression: | e=mid_expression { e