d0cd
44e378b84b
Rename CallType to Variant
2023-02-08 16:32:08 -08:00
d0cd
a4d76c644a
Refactor AST
2023-02-05 12:46:20 -08:00
ljedrz
b20308f049
chore: update the license headers ( #2252 )
...
Signed-off-by: ljedrz <ljedrz@gmail.com>
2023-02-02 14:27:06 -08:00
collin
d7b1b9ca56
chore(leo): bump version for new release
2022-12-12 19:31:56 -05:00
d0cd
48a1f0590b
Rename console.assert*
to assert*
. ( #2205 )
...
* Add assert statements to AST
* Add support in passes
* Add parser support
* Add tyc support
* Add support for assert statements in the remaining passes
* Fix examples, tests, and regen expectations
* Fmt
* Regen expectations
2022-12-06 21:56:48 -08:00
collin
1e01a3a686
chore(leo): bump version for new release
2022-11-30 13:40:52 -08:00
Collin Chin
3f2df5389c
use cargo workspace for dependencies ( #2195 )
2022-11-30 13:31:33 -08:00
collin
f6f286ac8a
pull testnet3, regen tests
2022-11-23 02:37:57 -05:00
Collin Chin
40e56f8613
Merge pull request #2100 from AleoHQ/feat/tuple
...
Supports tuples.
2022-11-22 20:49:25 -05:00
collin
44bca58821
chore(leo): bump version for new release
2022-11-14 18:56:09 -08:00
d0cd
682b67e184
Fix flattening logic
2022-11-12 16:23:16 -08:00
d0cd
060f57d971
Remove standalone finalize statement from the AST
2022-11-12 10:13:23 -08:00
d0cd
ef4ae89b92
Add more test cases
2022-11-08 15:52:31 -08:00
d0cd
ca89010e59
Fix failing case
2022-11-08 15:49:47 -08:00
d0cd
f606a8b74a
Restrict tuples in parser; cleanup
2022-11-08 15:49:47 -08:00
d0cd
910d373afd
WIP support tuples on lhs of definitions
2022-11-08 15:49:47 -08:00
d0cd
30391c8bd4
Add ExpressionStatement to AST
2022-11-08 15:49:47 -08:00
d0cd
678f8b02a1
Fix unit expression
2022-11-08 15:49:47 -08:00
d0cd
6789bc8aae
Add unit expressions to the AST
2022-11-08 15:49:47 -08:00
d0cd
0439981d01
Add TODO
2022-11-08 15:49:47 -08:00
Pranav Gaddamadugu
8d204a898b
Add tests for tuples
2022-11-08 15:49:46 -08:00
Pranav Gaddamadugu
41a8bc5a73
Add span associated with the import statement to ast
2022-10-31 18:05:14 -07:00
d0cd
df01360010
Clippy
2022-10-24 22:41:10 -07:00
Collin Chin
4256167bfe
Merge pull request #2112 from AleoHQ/feat/program-scope
...
Introduces `program` scope.
2022-10-06 14:19:35 -07:00
Pranav Gaddamadugu
028a01efde
More fixes
2022-10-05 23:51:56 -07:00
Pranav Gaddamadugu
e15e8f05d6
Additional validation for program scope and imported files
2022-10-05 14:59:06 -07:00
Pranav Gaddamadugu
8f2a6fdb27
Support AST changes in compile passes
2022-10-05 10:38:35 -07:00
Pranav Gaddamadugu
224cf18544
Add program_scope into AST
2022-10-05 10:00:15 -07:00
Pranav Gaddamadugu
bd4b7be8cf
WIP ast changes for program scope
2022-10-05 09:56:36 -07:00
Pranav Gaddamadugu
8872c3d53f
Remove use of default network domain
2022-10-04 19:11:36 -07:00
Pranav Gaddamadugu
c0c5e58011
Add checks for function calls
2022-10-03 16:18:58 -07:00
Pranav Gaddamadugu
80d8880292
Parser support for transition keyword
2022-10-03 08:53:44 -07:00
dependabot[bot]
28ed3dc320
Bump smallvec from 1.9.0 to 1.10.0
...
Bumps [smallvec](https://github.com/servo/rust-smallvec ) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.9.0...v1.10.0 )
---
updated-dependencies:
- dependency-name: smallvec
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-03 10:15:01 +00:00
Pranav Gaddamadugu
c551179b42
Fmt
2022-09-30 11:55:42 -07:00
Pranav Gaddamadugu
f51a36aeaf
Rename in compiler
2022-09-30 11:52:06 -07:00
Pranav Gaddamadugu
508c54dd92
Rename errors
2022-09-30 10:16:05 -07:00
Pranav Gaddamadugu
f7b5e213e6
Battleship example compiles
2022-09-20 21:45:16 -07:00
Pranav Gaddamadugu
8f5e779a6a
Compiler builds
2022-09-20 20:29:59 -07:00
collin
48530523d9
wip need to finish external inputs
2022-09-20 18:26:22 -07:00
collin
368d4c530c
push code to parse returning external records + battleship example
2022-09-20 17:17:43 -07:00
collin
0a86a05d20
push code to parse external calls
2022-09-20 13:58:52 -07:00
collin
4e05840bf5
bump ci rust version to 1.63
2022-09-16 18:19:20 +02:00
collin
834ea300aa
bump ci rust version to 1.65
2022-09-16 18:17:10 +02:00
collin
6c18565700
too new of rust version for actions
2022-09-16 17:51:15 +02:00
collin
2e24f82f21
Update rust versions
2022-09-16 17:32:20 +02:00
collin
c1d21e699c
merge testnet3
2022-09-13 15:39:20 +02:00
d0cd
048be34524
Merge pull request #2059 from AleoHQ/dependabot/cargo/testnet3/criterion-0.4.0
...
Bump criterion from 0.3.6 to 0.4.0
2022-09-13 11:47:55 +02:00
Pranav Gaddamadugu
a6fe8bf80c
Update docs
2022-09-13 11:10:22 +02:00
Pranav Gaddamadugu
c2bed2bb54
Add name to finalize block
2022-09-13 11:06:24 +02:00
dependabot[bot]
1b086ac519
Bump criterion from 0.3.6 to 0.4.0
...
Bumps [criterion](https://github.com/bheisler/criterion.rs ) from 0.3.6 to 0.4.0.
- [Release notes](https://github.com/bheisler/criterion.rs/releases )
- [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/bheisler/criterion.rs/compare/0.3.6...0.4.0 )
---
updated-dependencies:
- dependency-name: criterion
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-09-12 10:19:58 +00:00
Pranav Gaddamadugu
3d5ddb9e1a
Clippy
2022-09-06 12:14:37 -07:00
Pranav Gaddamadugu
f74bfb034c
wip flattening phase
2022-09-06 12:13:32 -07:00
Pranav Gaddamadugu
18274bf4f9
More tyc
2022-09-06 12:13:32 -07:00
Pranav Gaddamadugu
f4f77cdf55
Enable modes for return types in parser and AST
2022-09-06 12:13:32 -07:00
Pranav Gaddamadugu
791463c82f
WIP tyc for finalize
2022-09-06 12:13:32 -07:00
Pranav Gaddamadugu
bd232127dc
Clean up statments; add increment, decrement, and finalize
2022-09-06 12:13:32 -07:00
Pranav Gaddamadugu
5521e7f30b
Add finalize block to AST
2022-09-06 12:13:32 -07:00
Pranav Gaddamadugu
8a8e198f59
Tyc for mappings
2022-09-06 12:13:32 -07:00
Pranav Gaddamadugu
dffb788913
Add Mapping to Program and passes
2022-09-06 12:13:32 -07:00
Pranav Gaddamadugu
0e00c5dac3
Add Mapping to AST
2022-09-06 12:13:32 -07:00
collin
d0a2b8c3ce
cargo clippy
2022-09-06 15:00:42 +02:00
Pranav Gaddamadugu
78604f61da
Fix missed tyc in mul expressions
2022-08-23 19:40:01 -07:00
d0cd
4c0aed8718
Merge pull request #2020 from AleoHQ/feat/ssa-simplify-expressions
...
[Improvement] SSA simplifies expressions in assignment statements
2022-08-18 16:29:04 -07:00
Pranav Gaddamadugu
eb4ee1428c
Cleanup out dated docs
2022-08-18 15:45:30 -07:00
Pranav Gaddamadugu
a39ab9f77f
Cleanup
2022-08-17 17:03:30 -07:00
Pranav Gaddamadugu
1e39f36ddf
Introduces Consumer trait
2022-08-17 17:01:29 -07:00
Pranav Gaddamadugu
4095173e7c
Cleanup
2022-08-17 15:48:54 -07:00
Pranav Gaddamadugu
374b8f35f9
Fix comment
2022-08-17 15:36:07 -07:00
Pranav Gaddamadugu
615cc61e9e
Add console.assert
2022-08-17 15:27:11 -07:00
Pranav Gaddamadugu
545a77b09b
Remove unnecesary console functions; add assert_eq and assert_neq
2022-08-17 14:42:06 -07:00
Pranav Gaddamadugu
dcbdb1bd85
Reintroduce IntegerType
2022-08-09 19:53:17 -07:00
Pranav Gaddamadugu
7ff7170c45
Fix unary negation parser; add test
2022-08-09 19:53:17 -07:00
Pranav Gaddamadugu
a531b9642f
Remove complex assignments from the AST
2022-08-06 07:49:36 -07:00
Collin Chin
1ea1145295
Naming nit
2022-08-05 18:25:52 -07:00
collin
d397c750d2
merge testnet3
2022-08-05 13:59:08 -07:00
Collin Chin
46f21c68a2
Merge pull request #1994 from AleoHQ/remove-unsafe
...
Remove all uses of unsafe
2022-08-05 13:50:53 -07:00
d0cd
e4db5511d6
Update compiler/ast/src/expressions/ternary.rs
...
Co-authored-by: Collin Chin <16715212+collinc97@users.noreply.github.com>
2022-08-05 12:22:23 -07:00
Pranav Gaddamadugu
d56bd3084d
Fix order of folded ternary expressions when handling early return statements
2022-08-05 08:30:50 -07:00
Pranav Gaddamadugu
4e9b382c55
Typecheck helper functions; add codegen support
2022-08-04 19:34:46 -07:00
Pranav Gaddamadugu
112cc64290
Refactor FunctionInput; removes unecessary code
2022-08-04 17:55:26 -07:00
Pranav Gaddamadugu
ac4cd71800
Reorganize ast/functions folder
2022-08-04 17:55:26 -07:00
Pranav Gaddamadugu
2b3bda7da7
Add Annotation to AST; enable parser support
2022-08-04 17:55:26 -07:00
Mazdak Farrokhzad
a77d3b4092
forbid unsafe_code in all crates
2022-08-05 00:36:41 +02:00
Mazdak Farrokhzad
6cc70015d8
remove all uses of unsafe
2022-08-05 00:21:11 +02:00
collin
13350da303
merge testnet3
2022-08-03 17:20:40 -07:00
collin
8fb2e60cb4
cargo fmt + clippy
2022-08-03 14:52:05 -07:00
collin
e5da76abaf
impl nonce
2022-08-03 13:35:58 -07:00
Pranav Gaddamadugu
b20aed7d34
Add Rem, RemWrapped, and Mod to AST
2022-08-03 12:54:39 -07:00
collin
2cb40cebf0
patch group coordinate codegen
2022-08-01 14:30:05 -07:00
collin
dd8e1c1a4e
impl and, or, bitand, bitor, bitxor, shl, shr assign parsing
2022-07-29 12:47:23 -07:00
collin
66c5deb7e3
merge testnet3 do not regen tests
2022-07-28 14:23:47 -07:00
Collin Chin
77b5a55788
Update compiler/ast/src/statements/conditional.rs
2022-07-28 14:01:54 -07:00
Pranav Gaddamadugu
3dc234325c
Address feedback
2022-07-28 11:51:16 -07:00
Pranav Gaddamadugu
d11ed35c77
Addressing feedback
2022-07-28 09:24:33 -07:00
collin
184af219ee
build and check aleo files during cargo test
2022-07-27 15:49:49 -07:00
Pranav Gaddamadugu
12e356c030
Integrate SSA pass with compiler
2022-07-23 10:29:13 -07:00
Pranav Gaddamadugu
a6feb314a7
Produce a valid record as input
2022-07-20 15:02:33 -07:00
collin
66b0fcc885
merge testnet3 regen tests
2022-07-18 15:33:40 -07:00
collin
4dc0df0084
merge testnet3
2022-07-18 14:13:31 -07:00
Pranav Gaddamadugu
63c910e892
Fix incomplete Display impl for Literal
2022-07-18 12:38:15 -07:00
Pranav Gaddamadugu
1b872576b2
Merge branch 'testnet3' into feat/loop-unrolling
2022-07-18 07:54:48 -07:00
collin
07028a31c8
clippy
2022-07-16 17:39:51 -07:00
collin
6aec344ed3
impl leo run foo to target program names
2022-07-16 17:38:07 -07:00
collin
7f14e02055
import codegen working
2022-07-15 23:36:36 -07:00
collin
0368b8bd51
clippy
2022-07-15 21:00:16 -07:00
collin
914a9c385e
code gen for imports
2022-07-15 20:59:47 -07:00
Pranav Gaddamadugu
604b8cf992
Suppress dead_code warnings; these functions are used in constant folding
2022-07-15 08:55:58 -07:00
Pranav Gaddamadugu
bb0e8b0cf6
Removed unused code
2022-07-15 08:39:16 -07:00
Pranav Gaddamadugu
110c3eb35c
Address more feedback
2022-07-15 01:50:14 -07:00
Pranav Gaddamadugu
86b5c9faa1
Fix errors from merge
2022-07-14 17:52:36 -07:00
Pranav Gaddamadugu
b6224d6d89
Merge branch 'testnet3' into feat/loop-unrolling
2022-07-14 17:51:34 -07:00
Pranav Gaddamadugu
923d5924fe
Feedback from code review
2022-07-14 14:26:13 -07:00
Mazdak Farrokhzad
ce7ac0b443
run cargo clippy
2022-07-14 06:07:07 +02:00
Mazdak Farrokhzad
dab6629ac0
1. move tuple logic to typeck, 2. disallow multi vars in var decls
2022-07-14 06:07:05 +02:00
collin
7d604748bd
add token transfer example, fix record cast codegen
2022-07-13 21:02:33 -07:00
collin
3d9c8dd0e4
add more examples, fix circuits as input
2022-07-12 21:43:19 -07:00
collin
0b81f03f3a
move /leo/errors -> /errors
2022-07-12 16:41:42 -07:00
collin
6d731891d0
move /leo/span -> /compiler/span
2022-07-12 16:37:10 -07:00
collin
fa28678a26
impl leo run
2022-07-12 14:44:20 -07:00
Pranav Gaddamadugu
f5eea6b307
Regen expectations; cleanup
2022-07-11 23:07:11 -07:00
Pranav Gaddamadugu
bceccea80b
Merge branch 'testnet3' into feat/loop-unrolling
2022-07-11 22:55:42 -07:00
Pranav Gaddamadugu
9a3fa41f9e
Add loop unrolling pass to compiler
2022-07-11 21:57:48 -07:00
Pranav Gaddamadugu
6a032e7499
WIP value
2022-07-11 21:45:05 -07:00
collin
e013b88811
stabilize leo build
2022-07-11 21:09:27 -07:00
Pranav Gaddamadugu
ae13db1d4c
Type checking fills in start/stop values for IterationStatement
2022-07-11 14:48:53 -07:00
collin
c719843223
impl program json, aleo build and run working
2022-07-11 14:10:22 -07:00
Pranav Gaddamadugu
3b76574a78
Add start, stop values for IterationStatement
2022-07-11 11:20:54 -07:00
Pranav Gaddamadugu
3d13e8b400
WIP value
2022-07-11 11:18:25 -07:00
Pranav Gaddamadugu
8bdf199ab1
Remove IntegerTypes and declare them explicitly in Type
2022-07-11 07:17:57 -07:00
Pranav Gaddamadugu
15959614d0
Refactor value into its own module
2022-07-10 17:54:12 -07:00
Pranav Gaddamadugu
6fbf96e12d
Pull symbol_table/value.rs from improved-flattening
2022-07-10 09:45:53 -07:00
collin
a15fce710c
merge testnet3
2022-07-09 16:51:20 -07:00
collin
1bcb9accec
clippy
2022-07-09 15:38:11 -07:00
collin
2a61f26ccc
impl tuple tests
2022-07-09 15:02:45 -07:00
collin
a7fc19a69f
impl tuple ast access
2022-07-09 13:22:10 -07:00
collin
296c62a280
impl tuple type expression
2022-07-09 10:15:08 -07:00
Pranav Gaddamadugu
990b5a75da
Rename LiteralExpression to Literal; more cleanup
2022-07-08 13:44:21 -07:00
Pranav Gaddamadugu
cf7bde5fab
Clean up error
2022-07-08 13:43:28 -07:00
collin
a1c42a8d3f
impl tuple type
2022-07-08 13:07:20 -07:00
collin
43db782ce2
remove Copy trait from Type enum
2022-07-08 12:22:25 -07:00
collin
de178522d8
impl Display for BinaryOperation, improve error message
2022-07-05 16:42:36 -07:00
Collin Chin
bf8ca5abc4
Merge pull request #1910 from AleoHQ/fix-doc
...
[ast] Fix two doc comments.
2022-07-02 17:16:37 -07:00
Alessandro Coglio
7549640764
[ast] Fix two doc comments.
2022-07-02 14:50:19 -07:00
collin
0a4069fe39
merge testnet3
2022-07-02 14:08:02 -07:00
Pranav Gaddamadugu
b08706a2ff
Minor documentation
2022-07-01 13:22:01 -07:00
Pranav Gaddamadugu
a60439eb8a
Removed old Visitor and Reducer files
2022-07-01 11:54:44 -07:00
Pranav Gaddamadugu
e6794a0dec
Pull changes to compiler/ast/src/passes/reconstructor.rs from improved-flattening
2022-07-01 11:51:33 -07:00
Pranav Gaddamadugu
f1cd080d91
Pull changes to compiler/ast/src/passes/visitor.rs from improved-flattening
2022-07-01 11:50:59 -07:00
Mazdak Farrokhzad
952d7f4e36
records: base them atop circuits instead
2022-06-30 15:37:18 +02:00
collin
6933d5d9da
cargo clippy
2022-06-27 09:44:49 -10:00