Commit Graph

5053 Commits

Author SHA1 Message Date
Pranav Gaddamadugu
08b9aa0170 Regen test expectations 2022-08-05 08:43:01 -07:00
d0cd
a43e35cbde
Merge pull request #1995 from AleoHQ/abnf-compound-asg
[ABNF] Add compound assignments.
2022-08-05 08:38:58 -07:00
Pranav Gaddamadugu
d56bd3084d Fix order of folded ternary expressions when handling early return statements 2022-08-05 08:30:50 -07:00
Eric McCarthy
2f801a50d1 [examples] twoadicity: number of factors of two in field value 2022-08-04 22:52:40 -07:00
Pranav Gaddamadugu
1e4f2b1cca Add compiler test for function calls; fix bugs; regen test expectations 2022-08-04 21:21:56 -07:00
Pranav Gaddamadugu
34be1fc39d Codegen for function call; emits closures before functions 2022-08-04 21:03:42 -07:00
Alessandro Coglio
79bef6627a [ABNF] Add compound assignments. 2022-08-04 21:01:05 -07:00
Pranav Gaddamadugu
dfea5bbf15 Add @program modifier to tests; regen expectations 2022-08-04 20:00:40 -07:00
Pranav Gaddamadugu
4e9b382c55 Typecheck helper functions; add codegen support 2022-08-04 19:34:46 -07:00
Pranav Gaddamadugu
efafb7748e Regen test expectations due to AST refactors 2022-08-04 18:00:00 -07:00
Pranav Gaddamadugu
fa8d03cbd6 Validate annotations; refactor FunctionInput in passes 2022-08-04 17:59:03 -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
a73ddfb815 Add parser tests for annotations 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
Pranav Gaddamadugu
a269e0f764 Add @ token to the parser 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
e5819d790b cargo clippy 2022-08-05 00:28:54 +02:00
Mazdak Farrokhzad
6dbc21484f delete all unsafe instead of commenting out 2022-08-05 00:26:35 +02:00
Mazdak Farrokhzad
6cc70015d8 remove all uses of unsafe 2022-08-05 00:21:11 +02:00
Alessandro Coglio
2e0b542971 [examples] A tic-tac-toe app. 2022-08-04 15:08:05 -07:00
Collin Chin
8b3a7a5361
Merge pull request #1992 from AleoHQ/feat/offline-build-and-run
Add offline option to Leo CLI
2022-08-04 13:04:31 -07:00
collin
aeff08c96b cargo fmt 2022-08-04 12:30:34 -07:00
Pranav Gaddamadugu
8f3b813c70 Add offline option to Leo CLI 2022-08-04 12:08:59 -07:00
Pranav Gaddamadugu
3b9598d768 Fixed inputs; examples working 2022-08-04 11:29:36 -07:00
Pranav Gaddamadugu
94f026bd52 Dedup interest examples; update docs 2022-08-04 10:32:04 -07:00
Alessandro Coglio
056dbc0606 [examples] Enhance READMEs. 2022-08-04 10:32:04 -07:00
Alessandro Coglio
4621b87712 [examples] Tweak. 2022-08-04 10:32:04 -07:00
Alessandro Coglio
9deaa52aa6 [examples] Update constant and comments. 2022-08-04 10:32:04 -07:00
Alessandro Coglio
01c158e1ae [examples] Slightly more elaborate interest program.
Now the number of periods is an input (up to a max).
2022-08-04 10:32:04 -07:00
Alessandro Coglio
123aa2822c [example] Simple interest calculation. 2022-08-04 10:32:04 -07:00
Collin Chin
754a3ce685
Merge pull request #1987 from AleoHQ/record-nonce
Record nonce
2022-08-04 09:56:40 -07:00
Collin Chin
81de7d25d8
Update compiler/compiler/src/test.rs 2022-08-04 09:38:14 -07:00
collin
a090d85f10 Update deps 2022-08-04 09:29:04 -07:00
Alessandro Coglio
54f2410e96 [examples] Get this to compile at least. 2022-08-03 23:21:54 -07:00
Alessandro Coglio
07154af8ec [examples] A very simple auction-related example. 2022-08-03 23:05:27 -07:00
franfiuba
f39e616c63 first update of the bubble sort readme 2022-08-04 04:46:44 +02:00
franfiuba
f2367962d6 update helloworld readme example 2022-08-04 04:45:47 +02:00
franfiuba
8d2b0c00fc update group example readme 2022-08-04 04:44:46 +02:00
franfiuba
69336dd8f2 created a root readme in the examples folder 2022-08-04 04:43:54 +02:00
collin
13350da303 merge testnet3 2022-08-03 17:20:40 -07:00
Collin Chin
d216cc1722
Merge pull request #1989 from AleoHQ/feat/rem-and-mod-operators
Feat/rem and mod operators
2022-08-03 16:41:30 -07:00
collin
0138b270a8 regen tests 2022-08-03 16:26:16 -07:00
collin
3a32e51753 fix conflicts 2022-08-03 16:18:34 -07:00
collin
2331debcf5 update test infra 2022-08-03 16:17:40 -07:00
Pranav Gaddamadugu
338515fd66 Regen test expectations 2022-08-03 16:07:18 -07:00
collin
24c152be6e update test infra 2022-08-03 16:06:38 -07:00
collin
0f731a41f0 update deps 2022-08-03 15:34:23 -07:00
collin
8fb2e60cb4 cargo fmt + clippy 2022-08-03 14:52:05 -07:00
Pranav Gaddamadugu
58fccb7bb5 Added compiler tests for rem and mod 2022-08-03 14:40:12 -07:00