From 46e5c9e270065fe1a6466244f481c5add0235d66 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 24 Oct 2023 14:54:50 +0200 Subject: [PATCH] refactor --- flap/src/hopix/hopixParser.mly | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/flap/src/hopix/hopixParser.mly b/flap/src/hopix/hopixParser.mly index ddccf48..414a847 100644 --- a/flap/src/hopix/hopixParser.mly +++ b/flap/src/hopix/hopixParser.mly @@ -434,24 +434,27 @@ expression: /******************************** BASIC TYPES *********************************/ +identifier: +| i=ID { + Id i + } + type_variable: | tid=TID { TId tid } +constructor: +| kid=CID { + KId kid + } + type_constructor: | tcon=CID { TCon tcon } - -constructor: -| kid=CID { - KId kid - } - - label: | label=ID { LId label @@ -473,12 +476,6 @@ literal: } -identifier: -| i=ID { - Id i - } - - %inline binop: | PLUS { "`+`" } | MINUS { "`-`" }