forked from anoma/juvix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
352cf41
commit d22972b
Showing
36 changed files
with
78 additions
and
44 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 |
---|---|---|
|
@@ -3,4 +3,5 @@ myst-parser | |
sphinx_proof | ||
sphinxcontrib-tikz | ||
sphinxcontrib-bibtex | ||
sphinx-autobuild | ||
sphinx-autobuild | ||
rtd-tikz |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
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,68 @@ | ||
# Compiler | ||
|
||
|
||
<!-- https://q.uiver.app/?q=WzAsMTksWzAsMCwiXFx0ZXh0e0p1dml4IGZpbGV9Il0sWzIsNS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sNjAsNjBdfSxbMjQwLDYwLDYwLDFdXSxbMTMsMTQsIlxcbWF0aHNme3VuaWZpY2F0aW9ufSIsMCx7ImNvbG91ciI6WzAsMCw1MF19LFswLDAsNTAsMV1dXQ==&embed" width="100%" height="500" style="border-radius: 8px; border: none;"></iframe> | ||
|
||
----------- | ||
|
||
- [Frontend](./frontend/index.md) | ||
|
||
|
||
- **Parse**: | ||
Break up Juvix syntax into an AST | ||
|
||
- **Desugar**: | ||
Translate structure to compiler-friendly terms | ||
- *Serialise*: | ||
Convert AST to S-expression | ||
- *Desugar S-Expressions*: | ||
Strip away high-level constructs from the source (see [s-expression syntax](./frontend/s-expression-syntax)) | ||
- *Deserialise*" | ||
Convert S-expression back to AST | ||
|
||
- [Core](./core/index.md) | ||
- **Elaboration** | ||
- **Contextify** | ||
- *Resolve Open*" | ||
Construct a map of terms to the modules where they were defined | ||
- *Resolve Open In* | ||
|
||
- *Qualify Names*" | ||
Replace term names with their qualified names | ||
|
||
- *Resolve Infix*: | ||
Shunting-yard algorithm. Needs context for infixivity | ||
|
||
- *Lookup Record Fields* | ||
|
||
- Implicit arguments | ||
- Named variables | ||
- Tactics | ||
- Pattern matching for function declaration | ||
- Holes | ||
- Scope checking | ||
- Type checking | ||
- Unification | ||
- $\beta \eta$ - conversion checking | ||
- Holes solver | ||
|
||
- [Backends](backends/index.md) | ||
|
||
- LLVM | ||
- Michelson | ||
- Plonk | ||
|
||
---------- | ||
|
||
```{toctree} | ||
--- | ||
maxdepth: 1 | ||
--- | ||
frontend/index | ||
core/index | ||
backends/index | ||
``` | ||
|
||
---------- |
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