-
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.
Merge pull request #27 from billhails/car-cdr
car and cdr and prefix operators for them
- Loading branch information
Showing
10 changed files
with
72 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# TODO | ||
|
||
* over-application i.e. `fn (a) { fn (b) { a + b } }(2, 3)` | ||
* tuples - can use vec type to implement. | ||
* BUT - fn args are not tuples, that might interfere with currying. | ||
* unpacking function return values (tuples only) | ||
* print function | ||
* type awareness | ||
* needs thought, | ||
* would be nice to be able to describe how types should print. | ||
* don't convert `if` to `lambda` - it's too inefficient. | ||
* remove old `cons` from ANF and bytecodes. | ||
* numbers: | ||
* arbitrary size integers | ||
* rationals: 1/3 | ||
* irrationals: sqrt(2) | ||
* complex numbers | ||
* UTF8 and `wchar_t` | ||
* first class environments | ||
* libraries | ||
* probably use file system layout | ||
* env var to specify the root location(s) | ||
* better preable/postamble handling | ||
* propagate file and line numbers into all error reporting. | ||
* much better error reporting. | ||
* error recovery. | ||
* command-line arguments for libraries etc. | ||
* verbose output for gc statistics at end of run etc. | ||
* fail on non-exhaustive pattern match (optional). | ||
* some sort of `//@-allow-non-exhaustive` inline directive? | ||
* error function | ||
* remove hard-coded assumptions about type sizes in bytecodes |
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,4 @@ | ||
let | ||
x = [1, 2, 3, 4]; | ||
in | ||
<>>x |
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 @@ | ||
2 + 2 * 3 |
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 @@ | ||
print("Hello, World!") |
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
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