From 62dffb99e29eba9004ef2764fbdd9b0462de4742 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Thu, 17 Oct 2024 00:36:03 -0600 Subject: Add ContExpression syntax tree. This is for expressions which must be calculatable at compile time. --- src/Language/Fiddle/Compiler/Expansion.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Language/Fiddle/Compiler/Expansion.hs') diff --git a/src/Language/Fiddle/Compiler/Expansion.hs b/src/Language/Fiddle/Compiler/Expansion.hs index d9bce1e..0443b8d 100644 --- a/src/Language/Fiddle/Compiler/Expansion.hs +++ b/src/Language/Fiddle/Compiler/Expansion.hs @@ -71,6 +71,8 @@ deriving instance AdvanceStage CurrentStage BitType deriving instance AdvanceStage CurrentStage EnumBody +deriving instance AdvanceStage CurrentStage (ConstExpression u) + deriving instance AdvanceStage CurrentStage EnumConstantDecl deriving instance (AdvanceStage CurrentStage t) => AdvanceStage CurrentStage (Directed t) -- cgit