Commit Graph

56 Commits

Author SHA1 Message Date
howardwu
f6dcd7f9c2 Complete migration to leo_typed 2020-08-01 16:03:56 -07:00
howardwu
5bd6ab78b9 Refactor compiler to have a separate typed ast infrastucture 2020-07-29 01:12:17 -07:00
howardwu
d3894ff546 Adds AST JSON generator 2020-07-28 22:26:28 -07:00
collin
965bdc4d6a fix import module 2020-07-07 21:05:03 -07:00
collin
2e24197ea2 create value module 2020-07-07 19:11:26 -07:00
collin
14f5f448be resolve all definitions prior to program execution 2020-07-02 03:56:52 -07:00
collin
a422027e12 fix nested import parsing bug 2020-07-01 21:43:06 -07:00
collin
6a04dd0f58 refactor import file parsing. constraints for imports wip 2020-07-01 21:05:57 -07:00
collin
9854c8c983 use updated sha2 functions 2020-06-29 14:11:12 -07:00
collin
47ef6be719 set inputs size from bytes 2020-06-24 21:40:17 -07:00
collin
504480b3d7 serialize program into bytes file 2020-06-24 21:05:11 -07:00
collin
5bc1bc022d add file path to formatted errors 2020-06-22 22:32:57 -07:00
collin
ea81f9bc98 add square root example 2020-06-22 21:39:24 -07:00
collin
837a006e51 move error struct to types. fix integer namespaces 2020-06-20 15:24:46 -07:00
collin
9e93462f2b merge master 2020-06-19 23:16:12 -07:00
collin
82a0afc17e convert leo-inputs to span with errors. fix tests 2020-06-19 23:02:58 -07:00
howardwu
03b59b573b Update file extensions to new convention 2020-06-19 22:07:02 -07:00
collin
51f603b881 add span error formatting for inputs 2020-06-17 15:40:39 -07:00
collin
4d1bf9071c add span to input values 2020-06-16 19:13:11 -07:00
collin
c77e6a51b3 remove visibility syntax and functionality 2020-06-15 13:38:07 -07:00
collin
3f668422fd enforce name, type, visibility of inputs. add tests 2020-06-11 14:40:27 -07:00
collin
824a6059fb split up input loading and parsing in compiler 2020-06-11 11:43:05 -07:00
collin
67b8a48fcf public input booleans and integers 2020-06-10 16:14:55 -07:00
collin
643cd3026e initial private boolean input support 2020-06-09 16:36:15 -07:00
collin
834055abf5 use include_bytes for boolean test 2020-06-08 17:28:09 -07:00
howardwu
837d107a54 cargo fmt 2020-06-07 23:30:39 -07:00
howardwu
85ccf1b423 Introduces LeoParser, removes pest for leo-compiler 2020-06-07 22:21:31 -07:00
howardwu
6ad5dc75d5 Migrates program 2020-06-07 20:57:22 -07:00
howardwu
b9baafd57f Migrates integer, identifier, and input_value 2020-06-07 18:22:59 -07:00
howardwu
a380d83c75 Migrate functions 2020-06-07 17:22:22 -07:00
howardwu
a72a333877 Migrates ast to leo-ast module 2020-06-06 23:17:40 -07:00
collin
accfff46e0 add test syntax and cli command 2020-06-04 17:39:57 -07:00
collin
bd54f367cf impl syntax error handling 2020-06-04 15:44:38 -07:00
collin
4657f565f5 remove trait parameters from program types 2020-06-02 12:33:24 -07:00
collin
674f0dc83d remove Field trait parameter from InputValue 2020-06-02 12:15:55 -07:00
collin
8852c17857 simplify GroupType trait parameters 2020-06-01 17:52:33 -07:00
collin
31ec24670c add groupType to compiler 2020-05-29 16:43:39 -07:00
collin
19f6e64c48 remove snarkos group trait from compiler 2020-05-29 15:55:57 -07:00
collin
a9a8cb95c6 impl mutability tests. simplify mut expression evaluation 2020-05-19 12:01:19 -07:00
howardwu
33f518d1d4 Fixes 'leo build' to compile programs again. Updates tests to run on new model 2020-05-16 22:05:26 -07:00
collin
6efc834948 impl group element values 2020-05-12 20:01:47 -07:00
howardwu
7e36d2b5fa Standardize generic F and G order convention 2020-05-12 19:24:57 -07:00
collin
97272fa9d7 wip groups 2020-05-12 19:07:15 -07:00
collin
36018853a7 impl compiler error handling 2020-05-08 16:35:00 -07:00
collin
73e431e9eb refactor integer module, add uint8 type 2020-05-06 17:22:00 -07:00
collin
dcd484a62f fix imports 2020-05-05 18:43:31 -07:00
collin
e720409ca3 refactor main function parameters 2020-05-05 17:36:03 -07:00
collin
98a7d0bdf6 impl 0, 1 or more return arg 2020-05-04 11:40:29 -07:00
collin
b091d6c63b fix conflicts 2020-05-04 10:33:03 -07:00
howardwu
1350834bcd Implements caching of builds and setups for reusable work 2020-05-02 20:10:22 -07:00