-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ Added build scripts; Offered a fix for emacs mode; + Added a TODO markdown for keeping track of things; + In `irCheck.ml` a variable named effect needed to be renamed as that is reserved in ocaml now + Moved `abs` from Prelude to `lib.ml` to take advantage of pattern matching related OCaml types so it can be ad hoc + And started writing some tests
- Loading branch information
1 parent
175be34
commit c49bc11
Showing
8 changed files
with
105 additions
and
15 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,18 @@ | ||
# TODO (yung-turabian) | ||
|
||
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
======= | ||
>>>>>>> 1182532d (Bits) | ||
- [-] Add some test cases. | ||
- [ ] Have type inference convert, for example, int to float in a operation like 2.0 + 2? Hide behind an experimental guard if so. | ||
- [ ] Singleton kinds, they classify type cons by reavling their identity. | ||
- [ ] Higher singletons, S(c :: k) where k is a kind and c is a constructor of kind k. | ||
<<<<<<< HEAD | ||
- [ ] If given the ability to create new subkinds, then just force the creation to derive from one of the three 'base' (Type, Row, Presnece) or even one of their subkinds such as "Base." | ||
======= | ||
- [ ] Add some test cases. | ||
>>>>>>> 1765e705 (Created TODO.md) | ||
======= | ||
- [ ] If given the ability to create new subkinds, then just force the creation to derive from one of the three 'base' (Type, Row, Presnece) or even one of their subkinds such as "Base." | ||
>>>>>>> 1182532d (Bits) |
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,5 @@ | ||
#!/usr/bin/bash | ||
|
||
dune build | ||
mv _build/default/bin/links.exe links | ||
|
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,4 @@ | ||
#!/usr/bin/bash | ||
|
||
dune build | ||
sudo mv _build/default/bin/links.exe /usr/local/bin/links |
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,36 @@ | ||
Addition and multiplication [1] | ||
10 + 20 * 30 | ||
stdout : 610 : Int | ||
|
||
Addition and multiplication [2] | ||
20.0 * 30.0 + 10.0 | ||
stdout : 610.0 : Float | ||
|
||
Addition, division, subtraction, and multiplication | ||
100.50 + 200.20 / 10.10 - 3.10 * 10.10 | ||
stdout : 89.0117821782 : Float | ||
|
||
Inproper usage | ||
2 - 3.3 | ||
stderr : @..* | ||
exit : 1 | ||
|
||
Absolute value of integer | ||
abs(-9) | ||
stdout : 9 : Int | ||
|
||
Absolute value of float | ||
abs(-9.54) | ||
stdout : 9.54 : Float | ||
|
||
Prefix notation | ||
{var plus = (+); plus(1.5, (+)(2.5,3.5))} | ||
stdout : 7.5 : Float | ||
|
||
Unary minus | ||
(-1) | ||
stdout : -1 : Int | ||
|
||
Unary float minus | ||
(-1.0) | ||
stdout : -1.0 : Float |