Commit Graph

6793 Commits

Author SHA1 Message Date
evan-schott
94b3290681 remove leftover traces of previous import system 2023-12-01 16:09:59 -08:00
evan-schott
4b3b198850 reorganization of errors 2023-12-01 16:07:40 -08:00
evan-schott
51dd61701a return stubs in post order from retrieval module 2023-12-01 16:06:28 -08:00
evan-schott
b7e6bcade0 versioning update 2023-12-01 16:00:47 -08:00
d0cd
ea0fce0195
Merge pull request #2972 from AleoHQ/feat/stubs-disassembler
[Draft] Disassembler from Aleo instructions to Leo AST
2023-12-01 09:35:58 -08:00
evan-schott
3564389583 add proper error checking 2023-11-30 16:12:15 -08:00
evan-schott
931698fee3 Working example in utils/tmp/nested. Run test in cli.rs and retriever/src/lib.rs to see it in action 2023-11-30 16:12:10 -08:00
evan-schott
babac66435 Working example in . Run test in and to see it in action 2023-11-30 16:12:07 -08:00
evan-schott
a55e5e47e3 post rebase patches 2023-11-30 16:12:05 -08:00
evan-schott
3695ac649e clippy 2023-11-30 16:11:38 -08:00
evan-schott
bb960bf8b3 Merge dependencies stated in program.json w/ dependencies stated in .leo file 2023-11-30 16:11:38 -08:00
evan-schott
d5cbd8ef2b Modify compiler struct 2023-11-30 16:11:38 -08:00
evan-schott
184c2f583b Print imports in post order 2023-11-30 16:11:33 -08:00
evan-schott
3ff41db376 Default trait for stubs 2023-11-30 16:10:26 -08:00
evan-schott
cd3ae369fc Clippy fix 2023-11-30 16:10:26 -08:00
evan-schott
c44949ce3d Add new errors 2023-11-30 16:10:26 -08:00
evan-schott
650d47f414 Integrate network retrieval to build system 2023-11-30 16:10:26 -08:00
evan-schott
c7d3cf96f2 Test CLI build command 2023-11-30 16:10:26 -08:00
evan-schott
da1419c2ab Compiler::new() changes 2023-11-30 16:10:26 -08:00
evan-schott
26ff2b5815 Change disassembler structure 2023-11-30 16:10:24 -08:00
evan-schott
1aac5efad6 Retriever module 2023-11-30 16:10:05 -08:00
evan-schott
551eb1ebf6 Examples 2023-11-30 16:10:05 -08:00
evan-schott
8b28c1642c Add retriever module 2023-11-30 16:10:03 -08:00
evan-schott
1b9ac65d4a mess 2023-11-30 16:08:11 -08:00
evan-schott
c94c2c33b6 mapping & nit fix 2023-11-30 15:48:25 -08:00
evan-schott
313a5e45a9 add finalize 2023-11-30 15:47:34 -08:00
evan-schott
11851d4b8d support arrays as inputs 2023-11-30 15:46:48 -08:00
evan-schott
b3f8169186 clippy 2023-11-30 15:46:07 -08:00
evan-schott
25af3dd2c3 make errors consistent 2023-11-30 15:45:26 -08:00
evan-schott
6ab9415a02 Disassemble mappings too 2023-11-30 15:44:33 -08:00
evan-schott
4775364ab4 proper Cargo.toml syntax 2023-11-30 15:43:19 -08:00
evan-schott
ce160d6882 clippy 2023-11-30 11:43:08 -08:00
evan-schott
562d6da2bb Convert programCore->AST vs string->string 2023-11-30 11:40:04 -08:00
evan-schott
cc60421482 Testing TC error 2023-11-30 11:40:04 -08:00
evan-schott
5ed377e5ef Small TC fix to forbid record inputs to functions 2023-11-30 11:40:03 -08:00
evan-schott
b5a9eed04c From traits to from ProgramCore->AST 2023-11-30 11:39:19 -08:00
evan-schott
aa37895d91 mess 2023-11-30 11:38:39 -08:00
evan-schott
1fbc16ce24 Allow imports & Variant::Function functions in stubs 2023-11-30 11:38:05 -08:00
evan-schott
aee748b43f New errors 2023-11-30 11:36:23 -08:00
evan-schott
88b85f894d deprecate .leo imports in build system & codegen 2023-11-30 11:31:38 -08:00
evan-schott
2b6a35823b codegen fix 2023-11-30 11:15:09 -08:00
evan-schott
8796e8c921 clippy 2023-11-30 10:52:38 -08:00
evan-schott
004cc7cc70 typecheck that finalize_stub 2023-11-30 10:52:38 -08:00
evan-schott
d1d5abef5b deprecate hardcoded stubs by changing parser 2023-11-30 10:52:38 -08:00
evan-schott
5347570d97 deprecate .leo imports in parser 2023-11-30 10:52:38 -08:00
evan-schott
43fae971d8 allow let a:token.aleo/super_valuable_token = token.aleo/mint_private(); and let a:super_valuable_token = token.aleo/mint_private(); 2023-11-30 10:52:38 -08:00
evan-schott
89bcb3dbdf remove stub tokens 2023-11-30 10:52:38 -08:00
evan-schott
400702e900 add finalize_stub field to function_stub AST 2023-11-30 10:52:38 -08:00
evan-schott
0de4e81cc2 revise errors to allow stubs more leeway in parsing 2023-11-30 10:52:38 -08:00
evan-schott
fb56a4f429 tests AST changes but bytecode remains the same 2023-11-30 10:52:33 -08:00