This repository has been archived by the owner on Mar 6, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'compiler-refactor' into development
- Loading branch information
Showing
56 changed files
with
1,359 additions
and
556 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ spark | |
dist | ||
cabal-dev | ||
*.o | ||
*.tix | ||
*.hi | ||
*.chi | ||
*.chs.h | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
title: Technical Details | ||
--- | ||
|
||
``` | ||
| parse | compile | predeploy -> deploy -> check | ||
-------------+-------------+------------------------------------------ | ||
IO part | read file | find files | ||
non- IO part | parse AST | compile to deployments | ||
``` | ||
|
||
# Stages | ||
## Parse | ||
IO part: read file | ||
non-IO part: parse string into AST | ||
|
||
## Compile | ||
IO part: find files recursively | ||
non-IO part: Compile into deployments | ||
|
||
The only product of compilation is a list of deployments. | ||
Because the compilation is entirely modular, the IO part can be separated entirely. | ||
Compilation of a given compilation unit given a compilation scope can be entirely pure. | ||
It will either return a finished list of deployments or a Filepath leading to the next unit to compile. | ||
|
||
## Predeploy | ||
|
||
## PostDeploy | ||
|
||
## Check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,5 @@ card poems { | |
} | ||
{ | ||
kind link | ||
" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
source scripts/lib.sh | ||
check "Test" make test | ||
check "Test" make -B test |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.