Commit Graph

1527 Commits

Author SHA1 Message Date
collin
d6686005a3 fix refactored array initializer tests wip 3 2020-11-09 19:26:34 -08:00
collin
34b425ffe5 fix refactored array initializer tests wip 2 2020-11-09 15:03:12 -08:00
collin
aa17355a72 fix refactored array initializer tests wip 1 2020-11-09 14:27:59 -08:00
collin
1ae66d9908 add support for refactored array initializer in compiler 2020-11-06 19:42:07 -08:00
collin
d7ff808660 add support for refactored array type in compiler 2020-11-06 16:24:38 -08:00
collin
1daf6c9831 do not compare array dimensions in type inference 2020-11-06 13:26:47 -08:00
collin
6f3a235c76 Refactor symbol table array type comparison 2020-11-02 13:28:56 -08:00
collin
0868ef52d3 Refactor blake2s array type initialization 2020-11-02 12:55:55 -08:00
collin
cfb3cb7344 Refactor array type parsing 2020-11-02 12:11:53 -08:00
collin
2fdcb043fc Improve doc comments for compiler phases 2020-11-02 09:19:11 -08:00
collin
4da923eec4 rename core-packages -> core 2020-10-30 17:36:48 -07:00
collin
a8c5885836 rename core-ast -> ast 2020-10-30 17:31:09 -07:00
collin
ffcd93f781 rename ast -> grammar 1 2020-10-30 17:17:17 -07:00
collin
61f4189483 Add documentation for renamed modules 2020-10-30 16:23:18 -07:00
collin
5a46cb5bb0 rename leo-core -> leo-core-packages 2020-10-30 13:02:44 -07:00
collin
7589fa65c5 rename dynamic-check -> type-inference 2 2020-10-30 12:49:01 -07:00
collin
f1e393a9ab rename dynamic-check -> type-inference 1 2020-10-30 12:39:02 -07:00
collin
7e7d1e58a0 rename typed -> core-ast 2 2020-10-30 11:48:40 -07:00
collin
be2a805d49 rename typed -> core-ast 1 2020-10-30 11:30:52 -07:00
collin
4e8bc7f1a8 fix license header 2020-10-30 11:15:06 -07:00
collin
87d440dfa1 fix symbol table test 2020-10-30 11:10:29 -07:00
collin
7cf41558bc rename static-check -> symbol-table 3 2020-10-30 10:51:45 -07:00
collin
b5a05be09d rename static-check -> symbol-table 2 2020-10-30 10:44:44 -07:00
collin
20ac83265d rename static-check -> symbol-table 1 2020-10-30 10:25:44 -07:00
collin
833eb51c68 fix type assertion error 2020-10-28 09:53:27 -07:00
collin
cb3ad47f4f use derive Default for Spans 2020-10-27 21:53:40 -07:00
collin
665cb3f466 use copy on write data structure for array type flatten method 2020-10-27 17:32:00 -07:00
collin
1779bb04e0 Prefer manual Eq impl 2020-10-27 16:56:47 -07:00
collin
1ef9b33dec Prefer manual PartialEq and Hash impls to save space 2020-10-27 16:47:28 -07:00
collin
078827310c fix type variable tuple parsing 2020-10-27 15:08:22 -07:00
collin
085d59e67a Batch changes for static check module 1 2020-10-27 14:27:18 -07:00
collin
f275a7cddf Batch changes for imports module 2020-10-27 13:13:16 -07:00
collin
817a3bd450 Batch changes for scope.rs 2020-10-27 12:54:02 -07:00
collin
0fbb797f20 Batch changes for frame.rs 2020-10-27 12:48:44 -07:00
collin
f0a2e8298a fix compilation errors 2020-10-27 12:22:07 -07:00
Collin Chin
e58f00d8b5
Prefer iterator over vector in parse_array
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 11:25:43 -07:00
Collin Chin
0636997ddb
Prefer Vec new over with capacity in parse_statement_expression
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 11:23:19 -07:00
Collin Chin
74bfe113d0
Prefer iterator over vector in parse_iteration
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 11:21:51 -07:00
Collin Chin
6cb0d5c3c1
Prefer cloned over map + clone in parse_block
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 11:20:01 -07:00
Collin Chin
d5d34d3bdf
Prefer iterator over vector in parse_block
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 11:18:32 -07:00
Collin Chin
b987a6df7c
Iterate over references instead of cloning in parse_statements
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 11:14:02 -07:00
Collin Chin
2288510fec
Prefer str over String in get_circuit
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 11:12:23 -07:00
Collin Chin
c05fe32d77
Prefer str over String get_function
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 11:11:28 -07:00
Collin Chin
3c30ca342b
Prefer string slice over string reference get_variable
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 11:09:12 -07:00
Collin Chin
c4f5d61a17
Prefer slice over vector reference in undefined_variable_name
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 11:08:17 -07:00
Collin Chin
2133756d50
Prefer slice over vector reference in membership_failed
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 11:07:35 -07:00
Collin Chin
21c569d950
Prefer iterator over vector in parse_functions
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 11:05:42 -07:00
Collin Chin
6931cadd71
Prefer iterator over vector in parse_circuits
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 11:04:48 -07:00
Collin Chin
ff03e64314
Prefer to_vec over to_owned 2020-10-27 10:58:09 -07:00
collin
861e092485 push arguments by value 2020-10-27 10:39:45 -07:00