-
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.
Enhance REPL and error handling as well as documentation
- Loading branch information
Showing
10 changed files
with
71 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,11 @@ | ||
[package] | ||
name = "sasl" | ||
version = "0.1.0" | ||
version = "1.0.0" | ||
authors = ["Lars Vogtmann", "David Voigt <david.voigt1998@gmail.com>"] | ||
edition = "2018" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
phf = { version = "0.8.0", features = ["macros"] } | ||
dot = "0.1.4" | ||
clap = "3.0.0-beta.2" | ||
|
||
[dev-dependencies] | ||
#criterion = "0.3.4" | ||
|
||
#[[bench]] | ||
#name = "bench_lexer" | ||
#harness = false |
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 |
---|---|---|
|
@@ -13,4 +13,4 @@ def last xs = | |
if (tl xs) = nil then hd xs | ||
else last (tl xs) | ||
. | ||
take 20 fibs | ||
take 50 fibs |
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 |
---|---|---|
@@ -1,3 +1,14 @@ | ||
//! This module contains all modules needed for the backend of the compiler. | ||
//! | ||
//! The backend features two (three counting optimizations) stages: | ||
//! 1. Introducing combinators into the AST and removing all ocurences of parameters and | ||
//! local where definitions. This stage is handled by the `Abstractor`. | ||
//! 2. Evaluating the program in a virtual machine. This stage is handled by the `ReductionMachine`. | ||
//! The virtual machine simplifies the AST step by step adhering the rules given in the language | ||
//! specifications for the combinators. The VM also applys optimization rules which can lead to | ||
//! performance increase with up to ~40% quicker execution time. The optimizations can be activated | ||
//! by setting the `-o` flag. (There's really no reason not to do that.) | ||
pub mod abstractor; | ||
pub mod reduction; | ||
pub mod utils; |
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