Commit Graph

413 Commits

Author SHA1 Message Date
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
abd5235091 merge 2024-04-03 14:37:05 -07:00
Pranav Gaddamadugu
26dba19d88 Clippy 2024-04-02 10:19:46 -07:00
Pranav Gaddamadugu
2c391055af chore(leo): bump version for new release 2024-03-29 17:53:25 -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
ff4edada7e clippy 2024-03-29 14:17:28 -07:00
evan-schott
bc7e6c3fa2 Update AST 2024-03-29 14:17:28 -07:00
evan-schott
997b9051fd clippy 2024-03-08 16:42:55 -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
8e67cfbf2a AST refactor 2024-03-04 16:59:28 -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
8320adccdf Type inference for external finalize inputs 2024-02-27 14:09:00 -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
c733b360a3 refactor equality checking of types to account for nested external structs and futures 2024-02-19 18:24:30 -08:00
evan-schott
d98d27be7c Update parser 2024-02-12 22:41:46 -08:00
evan-schott
acdb2b5c9b Update disassembling 2024-02-12 22:37:18 -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
fb8620d635 Support for doubly nested external records in function signature 2024-02-09 15:38:40 -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
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
evan-schott
9341eaa24b label input external records consistently 2024-01-26 20:10:23 -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
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
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
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
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
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
ce160d6882 clippy 2023-11-30 11:43:08 -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
400702e900 add finalize_stub field to function_stub AST 2023-11-30 10:52:38 -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