Commit Graph

2716 Commits

Author SHA1 Message Date
evan-schott
228a0ae9b7 Transform method calls into associated functions 2024-04-08 11:17:11 -07:00
evan-schott
0ed5cd6924 Retrieve external future locations during disassembling instead of in TYC 2024-04-08 11:15:48 -07:00
evan-schott
e99d7df699 Refactor FutureType to introduce location field to store which program/function the future comes from 2024-04-08 11:09:57 -07:00
evan-schott
9889aa01c5 Refactor Variant to account for asynchronous function variants 2024-04-03 17:00:03 -07:00
evan-schott
e7ac5e0bf1 running 2024-04-03 15:59:57 -07:00
evan-schott
abd5235091 merge 2024-04-03 14:37:05 -07:00
Pranav Gaddamadugu
26dba19d88 Clippy 2024-04-02 10:19:46 -07:00
Pranav Gaddamadugu
b3c3714044 Regen expectations 2024-04-02 08:40:32 -07:00
Pranav Gaddamadugu
2d606f1930 Allow external contains 2024-04-01 06:46:45 -07:00
Pranav Gaddamadugu
4fe984ce7c Update Testnet3 to Mainnet 2024-04-01 06:43:54 -07:00
Pranav Gaddamadugu
2c391055af chore(leo): bump version for new release 2024-03-29 17:53:25 -07:00
evan-schott
36aa41fdc2 Regen expectations 2024-03-29 14:18:12 -07:00
evan-schott
ed085666a3 Add tests for using LocatorExpression out of place 2024-03-29 14:17:29 -07:00
evan-schott
1434e0a610 style 2024-03-29 14:17:29 -07:00
evan-schott
94b5d927d7 Refactor LocatorExpression 2024-03-29 14:17:29 -07:00
evan-schott
84f0bd6142 add new external mapping tests 2024-03-29 14:17:28 -07:00
Pranav Gaddamadugu
a0b28747da Fix compile expectations 2024-03-29 14:17:28 -07:00
evan-schott
22d1c402d4 in progress 2024-03-29 14:17:28 -07:00
evan-schott
305e00b473 style 2024-03-29 14:17:28 -07:00
evan-schott
5159f6ec20 fix shadowing bug 2024-03-29 14:17:28 -07:00
evan-schott
ff4edada7e clippy 2024-03-29 14:17:28 -07:00
evan-schott
e78b292552 Add external mappings to ST 2024-03-29 14:17:28 -07:00
evan-schott
2a152c2517 Error for trying to modify external mappings 2024-03-29 14:17:28 -07:00
evan-schott
75f3647879 Passing ST serialization test 2024-03-29 14:17:28 -07:00
evan-schott
7a741dbde4 Change symbol table usages (next time will just make change in ST so don't have to change everything) 2024-03-29 14:17:28 -07:00
evan-schott
dd48b6e29c Modify parser 2024-03-29 14:17:28 -07:00
evan-schott
bc7e6c3fa2 Update AST 2024-03-29 14:17:28 -07:00
Pranav Gaddamadugu
79e3564a6a Fmt 2024-03-29 12:38:30 -07:00
Pranav Gaddamadugu
3048dc1ffd More fix 2024-03-29 12:36:05 -07:00
Pranav Gaddamadugu
75867ac2ea Fix CI 2024-03-29 12:32:25 -07:00
d0cd
dd7caa03cf
Merge pull request #27848 from AleoHQ/tests/multi-program-tests
[Testing] Support multi-program tests.
2024-03-29 11:14:47 -07:00
Pranav Gaddamadugu
bcf1615861 Improve reproducibility 2024-03-28 10:12:01 -07:00
Pranav Gaddamadugu
7c95d1302f Reformat expectations 2024-03-28 08:31:51 -07:00
Pranav Gaddamadugu
058d3bf79a Add complex finalization multi-program example; regen expectations 2024-03-27 20:15:24 -07:00
Pranav Gaddamadugu
4c750bc963 Support finalize execution in execute tests 2024-03-27 17:50:05 -07:00
d0cd
8c70bbe394
Merge pull request #27662 from AleoHQ/dependabot/cargo/testnet3/serde-1.0.197
Bump serde from 1.0.196 to 1.0.197
2024-03-26 15:59:23 -07:00
Pranav Gaddamadugu
c17cdadf4f Add support for multi-file execute tests 2024-03-26 15:56:36 -07:00
Pranav Gaddamadugu
2213feb027 Directly use Process in compile tests 2024-03-26 13:10:50 -07:00
Pranav Gaddamadugu
f4af8a77d2 Add support for multi-file compile tests 2024-03-26 12:57:57 -07:00
dependabot[bot]
aae31c7385
Bump regex from 1.10.3 to 1.10.4
Bumps [regex](https://github.com/rust-lang/regex) from 1.10.3 to 1.10.4.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.10.3...1.10.4)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-25 10:33:46 +00:00
dependabot[bot]
9ccbc82544
Bump serde from 1.0.196 to 1.0.197
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.196 to 1.0.197.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.196...v1.0.197)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-19 00:56:38 +00:00
d0cd
a26bad9d1d
Merge pull request #27636 from eltociear/patch-1
Update mod.rs
2024-03-13 12:21:33 -07:00
evan-schott
997b9051fd clippy 2024-03-08 16:42:55 -08:00
evan-schott
c01c61c5e4 Fix Bug: Displaying futures in wrong order 2024-03-08 16:42:10 -08:00
evan-schott
2cc115d3ab no longer recognize finalize as symbol so can now use it for naming functions 2024-03-08 15:07:56 -08:00
evan-schott
143e9cdc23 formatting of futures in CG 2024-03-08 14:35:26 -08:00
evan-schott
dd6d40edf9 Convert f.1 from tuple access to member access to prepare for CG 2024-03-08 14:32:46 -08:00
evan-schott
8f6a94d250 Nested async function/transition logic 2024-03-08 14:31:51 -08:00
evan-schott
b29978cda9 Add fully typed futures to ST in finalize scope 2024-03-08 14:18:53 -08:00
evan-schott
e6e8811f5c Support nested async functions in return. return finalize_main(1u32, external.aleo/foo().1); 2024-03-08 14:12:58 -08:00
evan-schott
69fd6edab6 Only track finalize stub inputs 2024-03-08 11:58:44 -08:00
evan-schott
ccc7bf0eec Fix bug: Logic error in analyzing unawaited paths through nested conditionals 2024-03-08 11:56:29 -08:00
evan-schott
dea6443f67 Fix bug: If no futures present don't initialize await checker 2024-03-08 11:54:38 -08:00
evan-schott
2b2bc91d53 Fix bug: Never use Identifier as key to Indexmap because spans will change 2024-03-08 11:52:43 -08:00
evan-schott
5efb498075 Fix bug: Disassemble finalize functions to finalize/{name} to avoid shadowing errors 2024-03-08 11:51:33 -08:00
evan-schott
5911bb33a0 Fix bug: Always disassemble Future output types 2024-03-08 11:50:44 -08:00
evan-schott
2c809e9151 Fix bug: Future::await(f) should always take 1 argument 2024-03-08 11:47:31 -08:00
evan-schott
1d7bebb759 Parse Future as token not Identifier 2024-03-08 11:46:18 -08:00
evan-schott
7d5b1ed8a8 Change syntax so that finalize functions signatures no longer must explicitly declare output is future 2024-03-05 10:39:26 -08:00
evan-schott
189d36e37e Basic parsing pass 2024-03-05 10:38:12 -08:00
evan-schott
35894d79fe Remove old futures logic from CG 2024-03-04 17:13:22 -08:00
evan-schott
c482b81d95 TYC small fixes 2024-03-04 17:08:43 -08:00
evan-schott
9f20aa867f fix borrowing error 2024-03-04 17:05:02 -08:00
evan-schott
31d3373c8d supporting changes 2024-03-04 17:03:41 -08:00
evan-schott
8e67cfbf2a AST refactor 2024-03-04 16:59:28 -08:00
evan-schott
c516db61f0 Finished TYC pass 2024-02-28 19:54:58 -08:00
evan-schott
29f1a97ee3 Update helpers 2024-02-28 19:42:21 -08:00
evan-schott
a3e3065bd3 Support parsing awaiting of futures both as f.await() and Future::await(f) 2024-02-28 19:37:07 -08:00
evan-schott
ef069da30f Create new AST for method calls on struct instances 2024-02-28 19:35:58 -08:00
evan-schott
084451c1c8 Refactor to simplify borrowing 2024-02-27 14:11:28 -08:00
evan-schott
8320adccdf Type inference for external finalize inputs 2024-02-27 14:09:00 -08:00
evan-schott
b7c1f472d6 Track all possible paths through nested conditionals for unawaited and duplicate awaited futures 2024-02-26 18:34:49 -08:00
evan-schott
7dba5affc9 Errors for improper awaiting of futures (static and dynamic) 2024-02-26 15:19:20 -08:00
evan-schott
c886bafa43 Refactor to use structs instead of long lists of flags 2024-02-26 15:07:18 -08:00
evan-schott
cfee45da8f Add compiler flags for configuring await checker in nested conditionals 2024-02-26 14:29:29 -08:00
evan-schott
5a499937e6 Function signature checking w/ nested struct/future 2024-02-19 18:28:33 -08:00
evan-schott
8feb612ce7 TYC future argument retrieval 2024-02-19 18:25:13 -08:00
evan-schott
c733b360a3 refactor equality checking of types to account for nested external structs and futures 2024-02-19 18:24:30 -08:00
evan-schott
830b11b439 Sort into transitions and functions since now finalizes are detatched 2024-02-16 23:50:05 -08:00
evan-schott
839ffddc7e Combine finalize and function variant signature checks 2024-02-15 16:47:44 -08:00
evan-schott
d8c12ffa49 New struct fields to track function state 2024-02-15 16:46:59 -08:00
evan-schott
118b9c4b82 Deprecate finalize when TYC program 2024-02-15 16:33:54 -08:00
evan-schott
e5f98168f3 Small compatibility changes 2024-02-15 16:26:51 -08:00
evan-schott
d98d27be7c Update parser 2024-02-12 22:41:46 -08:00
evan-schott
863a54391c Add "Future", "Await", "Async", remove "Finalize", "then" tokens 2024-02-12 22:40:10 -08:00
evan-schott
acdb2b5c9b Update disassembling 2024-02-12 22:37:18 -08:00
Pranav Gaddamadugu
95d95f27e7 Merge branch 'testnet3' into feat/leo-deploy 2024-02-10 23:13:20 -06:00
Ikko Eltociear Ashimine
1084909db1
Update mod.rs
line_indicies -> line_indices

Signed-off-by: Ikko Eltociear Ashimine <eltociear@gmail.com>
2024-02-11 13:34:06 +09:00
d0cd
a0cbb5490f
Merge pull request #27622 from AleoHQ/dependabot/cargo/testnet3/tempfile-3.10.0
Bump tempfile from 3.9.0 to 3.10.0
2024-02-10 00:28:58 -06:00
d0cd
fcc98dd80d
Merge pull request #27630 from AleoHQ/dependabot/cargo/testnet3/num-traits-0.2.18
Bump num-traits from 0.2.17 to 0.2.18
2024-02-10 00:28:26 -06:00
evan-schott
5af08b53b5 update tests 2024-02-09 15:57:54 -08:00
evan-schott
9e0cfd565d TYC 2024-02-09 15:44:18 -08:00
evan-schott
78f8d319ea Passes refactor 2024-02-09 15:43:16 -08:00
evan-schott
27beae3bcb Parser 2024-02-09 15:40:19 -08:00
evan-schott
9d84b6cc51 Struct -> Composite 2024-02-09 15:39:19 -08:00
evan-schott
9dd7b7e992 Update compiler/ast/src/expressions/call.rs
Co-authored-by: d0cd <23022326+d0cd@users.noreply.github.com>
Signed-off-by: evan-schott <53463459+evan-schott@users.noreply.github.com>
2024-02-09 15:38:51 -08:00
evan-schott
4894cf75f3 update ST usages to reflect ST structure change 2024-02-09 15:38:40 -08:00
evan-schott
975c21cdcd Fix json serialization error (can't have non-string Option<..> as IndexMap key) 2024-02-09 15:38:40 -08:00
evan-schott
8a6d382976 Refactor Type::Identifier => Type::Struct 2024-02-09 15:38:40 -08:00
evan-schott
fb8620d635 Support for doubly nested external records in function signature 2024-02-09 15:38:40 -08:00
evan-schott
d4aed52344 prohibit external record creation 2024-02-09 15:38:08 -08:00
evan-schott
80891836ee Change representation of external functions in AST 2024-02-09 15:38:06 -08:00
evan-schott
4b8131c036 Change representation of external records in AST 2024-02-09 15:37:05 -08:00
evan-schott
278f59bba7 usage changes 2024-02-09 15:37:04 -08:00
evan-schott
c3c5ff152e modify CallExpression AST representation of external functions 2024-02-09 15:37:04 -08:00
evan-schott
8159c9af85 add external mapping to symbol table 2024-02-09 15:37:04 -08:00
evan-schott
f743f20876 unused 2024-02-09 15:37:04 -08:00
evan-schott
bfa41e1d79 clippy 2024-02-09 15:10:16 -08:00
dependabot[bot]
ba704d5f39
Bump clap from 4.4.18 to 4.5.0
Bumps [clap](https://github.com/clap-rs/clap) from 4.4.18 to 4.5.0.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.4.18...clap_complete-v4.5.0)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-09 10:43:52 +00:00
dependabot[bot]
8ee5f2180d
Bump num-traits from 0.2.17 to 0.2.18
Bumps [num-traits](https://github.com/rust-num/num-traits) from 0.2.17 to 0.2.18.
- [Changelog](https://github.com/rust-num/num-traits/blob/master/RELEASES.md)
- [Commits](https://github.com/rust-num/num-traits/compare/num-traits-0.2.17...num-traits-0.2.18)

---
updated-dependencies:
- dependency-name: num-traits
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-08 10:19:10 +00:00
dependabot[bot]
049014eb74
Bump tempfile from 3.9.0 to 3.10.0
Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.9.0 to 3.10.0.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.9.0...v3.10.0)

---
updated-dependencies:
- dependency-name: tempfile
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-06 10:12:18 +00:00
d0cd
1cbb16936b
Merge pull request #27588 from AleoHQ/dependabot/cargo/testnet3/serde-1.0.196
Bump serde from 1.0.195 to 1.0.196
2024-01-30 06:22:59 -05:00
dependabot[bot]
1a7b1d17e0
Bump itertools from 0.12.0 to 0.12.1
Bumps [itertools](https://github.com/rust-itertools/itertools) from 0.12.0 to 0.12.1.
- [Changelog](https://github.com/rust-itertools/itertools/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-itertools/itertools/compare/v0.12.0...v0.12.1)

---
updated-dependencies:
- dependency-name: itertools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-30 10:10:55 +00:00
dependabot[bot]
ce0f201fe7
Bump serde from 1.0.195 to 1.0.196
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.195 to 1.0.196.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.195...v1.0.196)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-29 10:40:15 +00:00
evan-schott
a0d53a74d5 style 2024-01-26 21:46:32 -08:00
evan-schott
a0d1e128a1 enforce that all functions have at least one transition function (a snarkvm requirement) 2024-01-26 21:42:43 -08:00
evan-schott
9341eaa24b label input external records consistently 2024-01-26 20:10:23 -08:00
evan-schott
f38ed40f0d Don't add input variables from stub function and finalize signatures to symbol table 2024-01-26 20:00:27 -08:00
d0cd
7ac50d83ed
Merge pull request #24797 from stanlagermin/fix_typos
fix typos
2024-01-22 14:35:56 -08:00
d0cd
d40cb965dd
Merge pull request #27556 from AleoHQ/dependabot/cargo/testnet3/smallvec-1.13.1
Bump smallvec from 1.12.0 to 1.13.1
2024-01-22 14:24:10 -08:00
dependabot[bot]
cc76430f9d
Bump smallvec from 1.12.0 to 1.13.1
Bumps [smallvec](https://github.com/servo/rust-smallvec) from 1.12.0 to 1.13.1.
- [Release notes](https://github.com/servo/rust-smallvec/releases)
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.12.0...v1.13.1)

---
updated-dependencies:
- dependency-name: smallvec
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-22 10:41:13 +00:00
dependabot[bot]
2604becc90
Bump regex from 1.10.2 to 1.10.3
Bumps [regex](https://github.com/rust-lang/regex) from 1.10.2 to 1.10.3.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.10.2...1.10.3)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-22 10:41:01 +00:00
d0cd
e6d1a23402
Merge branch 'testnet3' into testnet3
Signed-off-by: d0cd <23022326+d0cd@users.noreply.github.com>
2024-01-16 12:08:10 +08:00
d0cd
e0aed142fc
Merge pull request #27446 from AleoHQ/dependabot/cargo/testnet3/smallvec-1.12.0
Bump smallvec from 1.11.2 to 1.12.0
2024-01-16 09:33:32 +08:00
Pranav Gaddamadugu
f3fbb7e8f4 Remove struct output from compiler 2024-01-15 15:45:08 -08:00
Pranav Gaddamadugu
a38c407ea0 Remove parser components related input files 2024-01-15 15:45:07 -08:00
Pranav Gaddamadugu
61eede48d7 Remove input AST parser 2024-01-15 15:45:07 -08:00
Pranav Gaddamadugu
d1a1b258ec Remove InputAST from compiler 2024-01-15 15:45:07 -08:00
dependabot[bot]
87e9d323b0
Bump smallvec from 1.11.2 to 1.12.0
Bumps [smallvec](https://github.com/servo/rust-smallvec) from 1.11.2 to 1.12.0.
- [Release notes](https://github.com/servo/rust-smallvec/releases)
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.11.2...v1.12.0)

---
updated-dependencies:
- dependency-name: smallvec
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-15 10:05:18 +00:00
d0cd
8cdab3b774
Merge pull request #2881 from AleoHQ/feat/stubs
[Feature] Support importing local and remote programs.
2024-01-10 10:01:38 +08:00
dependabot[bot]
22550184de
Bump serde from 1.0.194 to 1.0.195
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.194 to 1.0.195.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.194...v1.0.195)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-08 10:49:32 +00:00
vuittont60
3b346c96d2
Fix typo 2024-01-08 11:27:22 +08:00
evan-schott
28dae76945 CLI fix 2024-01-03 13:13:32 -08:00
evan-schott
902387d639
Merge branch 'testnet3' into feat/stubs
Signed-off-by: evan-schott <53463459+evan-schott@users.noreply.github.com>
2024-01-03 15:22:04 -05:00
d0cd
39a9fa0230
Merge pull request #25889 from AleoHQ/dependabot/cargo/testnet3/tempfile-3.9.0
Bump tempfile from 3.8.1 to 3.9.0
2024-01-03 18:21:55 +05:30
dependabot[bot]
fa98671106
Bump serde from 1.0.193 to 1.0.194
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.193 to 1.0.194.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.193...v1.0.194)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-02 10:29:26 +00:00
dependabot[bot]
573ea489a7
Bump tempfile from 3.8.1 to 3.9.0
Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.8.1 to 3.9.0.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.8.1...v3.9.0)

---
updated-dependencies:
- dependency-name: tempfile
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-28 10:12:55 +00:00
stanlagermin
31b4868ed0 fix typos 2023-12-21 14:55:52 +07:00
d0cd
46d539a0b6
Merge pull request #8287 from AleoHQ/cleanup
Cleanup.
2023-12-19 11:55:40 -08:00
evan-schott
54c6020afd prevent external calls to .leo programs 2023-12-05 20:01:16 -08:00
evan-schott
51e3ad9f78 relax external struct shadowing 2023-12-05 20:00:56 -08:00
evan-schott
8ea5e3afec fix stub shadowing issue & name mismatch issue 2023-12-05 20:00:18 -08:00
Pranav Gaddamadugu
4730bb0fb4 Clippy 2023-12-04 18:44:03 -08:00
Andrew Rosborough
81b90017c3 #15513 Fix bug with parsing U32<N> from string into usize. 2023-12-04 13:56:51 -05:00
evan-schott
db205441f1 merge program.json and .leo dependencies in compiler.rs 2023-12-01 16:14:55 -08:00
evan-schott
20a4278f56 allow functions to have empty blocks 2023-12-01 16:11:29 -08:00
evan-schott
94b3290681 remove leftover traces of previous import system 2023-12-01 16:09:59 -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
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
ce160d6882 clippy 2023-11-30 11:43:08 -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
88b85f894d deprecate .leo imports in build system & codegen 2023-11-30 11:31:38 -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
bbf1e01145 clippy 2023-11-30 10:52:16 -08:00
evan-schott
f1a19b2a03 rebase fix 2023-11-30 10:52:16 -08:00
evan-schott
bd2e3de733 Allow imports & Variant::Function functions in stubs 2023-11-30 10:52:16 -08:00
evan-schott
b85c5b285e Make compatible w/ LU and CG passes 2023-11-30 10:52:16 -08:00
evan-schott
5441c23a51 TC stubs 2023-11-30 10:52:15 -08:00
evan-schott
878bbc8f35 Add stub structs & functions to ST 2023-11-30 10:52:15 -08:00
evan-schott
393d9bc3d0 Allow parsing of external types declared in stubs for function signatures 2023-11-30 10:52:15 -08:00
evan-schott
ae6fda3b52 Update AST 2023-11-30 10:52:15 -08:00
evan-schott
292f890369 error msgs 2023-11-30 10:52:15 -08:00
evan-schott
cf7baa0132 Update AST to include FunctionStub and Stub 2023-11-30 10:52:15 -08:00
evan-schott
72cf2e7517 Add "stub" token 2023-11-30 10:52:15 -08:00
Pranav Gaddamadugu
4a0228bcac Update CI rust version 2023-11-27 17:18:48 -08:00
d0cd
9050bc8da2
Merge pull request #8446 from AleoHQ/fix/codegen-arrays
Fix codegen for array init expressions
2023-11-23 12:06:37 -08:00
Pranav Gaddamadugu
afc953cd0b Clippy + fmt 2023-11-22 17:34:20 -08:00
Pranav Gaddamadugu
1afa68a66e Remove is_main 2023-11-22 17:33:42 -08:00
d0cd
47e14b8187
Merge pull request #7736 from AleoHQ/dependabot/cargo/testnet3/serde-1.0.193
Bump serde from 1.0.190 to 1.0.193
2023-11-22 17:22:27 -08:00
Pranav Gaddamadugu
b9cb62d8aa Update dependencies 2023-11-21 10:28:07 -08:00
dependabot[bot]
56681ab890
Bump serde from 1.0.190 to 1.0.193
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.190 to 1.0.193.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.190...v1.0.193)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-21 02:12:58 +00:00
d0cd
5c6a6315e8
Merge pull request #5085 from AleoHQ/dependabot/cargo/testnet3/smallvec-1.11.2
Bump smallvec from 1.11.1 to 1.11.2
2023-11-20 18:10:35 -08:00
dependabot[bot]
ec6be21abf
Bump itertools from 0.11.0 to 0.12.0
Bumps [itertools](https://github.com/rust-itertools/itertools) from 0.11.0 to 0.12.0.
- [Changelog](https://github.com/rust-itertools/itertools/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-itertools/itertools/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: itertools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-15 10:11:57 +00:00
dependabot[bot]
909aaf6904
Bump smallvec from 1.11.1 to 1.11.2
Bumps [smallvec](https://github.com/servo/rust-smallvec) from 1.11.1 to 1.11.2.
- [Release notes](https://github.com/servo/rust-smallvec/releases)
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.11.1...v1.11.2)

---
updated-dependencies:
- dependency-name: smallvec
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-11 20:19:20 +00:00
Pranav Gaddamadugu
34794f94ea Fix codegen for array init expressions 2023-11-08 14:16:42 -08:00
Pranav Gaddamadugu
34f2dd6f62 Clippy 2023-10-27 18:54:58 -04:00
Pranav Gaddamadugu
b3c1723d5c Add tests and fixes 2023-10-27 18:54:58 -04:00
Pranav Gaddamadugu
0dcd156513 Cleanup 2023-10-27 18:54:58 -04:00
Pranav Gaddamadugu
59dfeb9d57 Regen expectations 2023-10-27 18:54:58 -04:00
Pranav Gaddamadugu
6756320fd8 Regen expectations 2023-10-27 18:54:58 -04:00
Pranav Gaddamadugu
49a0c7a469 Support codegen for arrays 2023-10-27 18:54:58 -04:00
Pranav Gaddamadugu
c80aee091a Update DCE 2023-10-27 18:54:58 -04:00
Pranav Gaddamadugu
044933c0fb Update loop unrolling 2023-10-27 18:54:58 -04:00
Pranav Gaddamadugu
08d3997813 Update TYC 2023-10-27 18:54:57 -04:00