This repository has been archived by the owner on Nov 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Jordan Mackie
committed
Mar 14, 2023
1 parent
66e3b30
commit b4afa7a
Showing
38 changed files
with
5,236 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,27 @@ | ||
[package] | ||
name = "ditto-type-checker" | ||
version = "0.0.1" | ||
edition = "2021" | ||
license = "BSD-3-Clause" | ||
|
||
[lib] | ||
doctest = false | ||
|
||
[dependencies] | ||
ditto-cst = { path = "../ditto-cst" } | ||
ditto-ast = { path = "../ditto-ast" } | ||
ditto-pattern-checker = { path = "../ditto-pattern-checker" } | ||
nonempty = "0.8" | ||
smallvec = "1.0" | ||
smol_str = "0.1" | ||
halfbrown = "0.1" | ||
indexmap = "1.9" | ||
serde = { version = "1.0", features = ["derive"] } | ||
miette = { version = "5.5", features = ["fancy"] } | ||
thiserror = "1.0" | ||
Inflector = "0.11.4" | ||
tracing = "0.1" | ||
tinyset = "0.4" | ||
|
||
[dev-dependencies] | ||
datadriven = "0.6" |
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,8 @@ | ||
# The ditto type checker | ||
|
||
This crate handles type-checking and linting the ditto syntax. | ||
|
||
The type-checking algorithm is based on [@david-christiansen](https://github.com/david-christiansen)'s [Bidirectional Typing Rules][bidirectional]. | ||
|
||
[bidirectional]: https://www.davidchristiansen.dk/tutorials/bidirectional.pdf | ||
[bidirectional impl]: https://github.com/luc-tielen/typesystem |
Oops, something went wrong.