Commit Graph

353 Commits

Author SHA1 Message Date
Victor Maia
c7e18e936d Inc version 2022-07-27 01:13:19 -03:00
Victor Maia
af1b3890d0 Proper reduction of default cases; fixes #32 2022-07-27 01:09:28 -03:00
Victor Maia
4c21332cad Inc version 2022-07-26 17:33:49 -03:00
Victor Taelin
b9e7e36be9
Merge pull request #35 from FranchuFranchu/linearize-unused
to-kdl: Linearize unused variables.
2022-07-26 17:33:27 -03:00
Victor Maia
be09477634 Show unbound var name 2022-07-26 17:12:39 -03:00
Victor Maia
4564e27fee Fix derive path with dots 2022-07-26 16:32:48 -03:00
FranchuFranchu
609906e3c4 to-kdl: Linearize unused variables.
Previously, the following code:

    Q (x: Type): U60
    Q x = #0

would get turned into:

	fun (Q x) {
	  (Q x) = #0
	}

This is incorrect because X is not used, and thus isn't used in a linear way.

Now, the correct code is produced:

	fun (Q x) {
	  (Q ~) = #0
	}

This has also been implemented for lambdas: `@x #0` -> `@~ #0`
2022-07-26 16:12:39 -03:00
Victor Maia
8303aeff36 Linearize variables on Kindelia compiler 2022-07-26 14:53:06 -03:00
Victor Maia
a8e9d02c68 Add missing type name 2022-07-25 22:42:13 -03:00
Victor Maia
b3e0d2802b Match syntax and improvements 2022-07-25 20:23:31 -03:00
Samuel Durante
e6253f7714 Add char and string sugar syntax 2022-07-25 03:45:07 -03:00
Victor Maia
edf9a9fdc5 Terminal IO 2022-07-24 14:16:59 -03:00
Victor Maia
c5295e9c08 Inc version 2022-07-23 23:06:46 -03:00
Victor Maia
4c2641eeb8 Update HVM; fixes #31 2022-07-23 23:05:07 -03:00
Victor Maia
b53901dcde Add an equality to let-bound variables
Should allow using let for type aliases.
2022-07-23 15:48:39 -03:00
Victor Maia
c00e729952 Expand README 2022-07-23 15:25:57 -03:00
Victor Maia
e941df9fb0 Re-enable errors on top-level types 2022-07-23 14:44:13 -03:00
Victor Maia
f64e4177ab Temporarily disable errors on top-level types 2022-07-23 14:25:22 -03:00
Victor Maia
c5004cb59b Merge branch 'master' of github.com:kindelia/kind2 2022-07-23 14:21:19 -03:00
Victor Maia
1a39ce8cb9 Improve errors 2022-07-23 14:21:13 -03:00
Victor Taelin
ba6bd211d0
Update README.md 2022-07-23 13:23:32 -03:00
Victor Taelin
de58b84a5f
Update README.md 2022-07-23 13:21:01 -03:00
Victor Taelin
bb875065f3
Update README.md 2022-07-23 13:20:42 -03:00
Victor Maia
bbbc7aa16d Fix holes on var-term equality 2022-07-23 13:13:38 -03:00
Victor Maia
21f99febab Reject repeated variables; fixes #31 2022-07-23 10:17:34 -03:00
Victor Maia
7f9e6a67fc Optimize filler 2022-07-23 09:36:15 -03:00
Victor Maia
dd59dcb0eb Algebraic datatype declarations and generic derivers 2022-07-22 22:17:21 -03:00
Victor Maia
44a289a6c5 Avoid unbound variables 2022-07-22 19:32:00 -03:00
Victor Maia
66950a9b77 Allow defining Foo inside Foo/_.kind 2022-07-22 18:19:06 -03:00
Victor Maia
748a97b326 Substitute holes inside equality 2022-07-22 17:32:42 -03:00
Victor Maia
ba11f21191 Bugfixes and polishments 2022-07-22 15:04:49 -03:00
Victor Maia
a58e107d93 Fix equality of identicals erroring 2022-07-22 11:45:50 -03:00
Victor Maia
6a0c4e21d4 Inc version 2022-07-20 13:45:02 -03:00
Victor Maia
2078017266 Link to Wikind 2022-07-20 02:16:06 -03:00
Victor Maia
5ea7949471 Shorten message 2022-07-20 02:12:39 -03:00
Victor Maia
91cd0fba69 Inc version 2022-07-20 02:04:27 -03:00
Victor Maia
39a1e6b5b3 File not found error 2022-07-20 01:46:42 -03:00
Victor Maia
bec02ab574 Initial file loader and fixes 2022-07-20 01:44:14 -03:00
Victor Maia
1f24ecc183 Don't generate file on kind2 check command 2022-07-19 20:36:55 -03:00
Victor Maia
cde1f62a77 Inc version 2022-07-19 20:26:42 -03:00
Victor Maia
87bf1f6b1e Extend Cargo.toml 2022-07-19 20:25:52 -03:00
Victor Maia
83739a4ec6 Add conv_eval 2022-07-19 20:23:07 -03:00
Victor Maia
03ca923efe Fixes and polishments 2022-07-19 20:20:11 -03:00
Victor Maia
dc578a74c6 Initial do-notation 2022-07-19 17:10:17 -03:00
Victor Maia
bb72c95fe3 Merge branch 'master' of github.com:kindelia/kind2 2022-07-19 01:15:57 -03:00
Victor Maia
47a5a28038 Allow matching U60 2022-07-19 01:15:47 -03:00
Victor Taelin
1985181586
Update README.md 2022-07-18 23:12:35 -03:00
Victor Maia
4a3709d9b8 Add missing Op2 operators 2022-07-18 23:09:59 -03:00
Victor Maia
b2758c0828 Merge branch 'master' into operators 2022-07-18 22:57:58 -03:00
Victor Maia
6c1c5ec989 Write README.md 2022-07-18 22:47:18 -03:00