diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2024-10-03 12:28:08 -0600 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2024-10-03 12:29:12 -0600 |
commit | ae5ea355a32eff2b1b1762f4ac2389d94f388df7 (patch) | |
tree | 51f731607fb2d0b4814d07ed9b196c47e1778d32 /src/Main.hs | |
parent | da5d0ed5b572b1fbff2f9b6c2016b7bd508b43e8 (diff) | |
download | fiddle-ae5ea355a32eff2b1b1762f4ac2389d94f388df7.tar.gz fiddle-ae5ea355a32eff2b1b1762f4ac2389d94f388df7.tar.bz2 fiddle-ae5ea355a32eff2b1b1762f4ac2389d94f388df7.zip |
Add empty qualification stage.
This stage will be responsible for qualifying all types and attaching
necessary metadata to make the job of later stages much easier.
Diffstat (limited to 'src/Main.hs')
-rw-r--r-- | src/Main.hs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Main.hs b/src/Main.hs index 393fb69..fb2a1f2 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -13,6 +13,7 @@ import Language.Fiddle.Compiler import Language.Fiddle.Compiler.ConsistencyCheck import Language.Fiddle.Compiler.Expansion import Language.Fiddle.Compiler.ImportResolution +import Language.Fiddle.Compiler.Qualification import Language.Fiddle.Compiler.Stage0 import Language.Fiddle.GenericTree ( GenericSyntaxTree (..), @@ -29,7 +30,10 @@ import System.IO -- compilationPipeline :: _ -> _ -> CompilationPhase Parsed Checked compilationPipeline parse compile = - importResolutionPhase parse compile >>> expansionPhase >>> consistencyCheckPhase + importResolutionPhase parse compile + >>> expansionPhase + >>> qualificationPhase + >>> consistencyCheckPhase -- | Global flags for the compiler. newtype GlobalFlags = GlobalFlags |