gluax
e0cf988261
hacky, but optional comma only allowed on last member variable
2021-04-29 15:22:17 -04:00
Collin Chin
aaa42bba4c
Merge pull request #705 from AleoHQ/feature/485-defines
...
Feature/485 global consts
2021-04-28 14:06:40 -07:00
Collin Chin
b4584399ef
Merge pull request #810 from AleoHQ/feature/opti-cli-flag
...
[CLI] Adds CompilerOptions flags to Leo CLI
2021-04-26 22:56:55 -07:00
gluax
e71c8d99e0
import global consts, clean up, test type inference on global consts
2021-04-26 17:51:19 -04:00
damirka
6ef9b86cc2
Merge branch 'feature/opti-cli-flag' of github.com:AleoHQ/leo into feature/opti-cli-flag
2021-04-26 23:42:57 +03:00
damirka
a1326d386e
Merge branch 'master' into feature/opti-cli-flag
2021-04-26 23:39:10 +03:00
Collin Chin
b6f6f051f0
Merge pull request #896 from AleoHQ/feature-relative-imports
...
[CLI] Makes import path relative to program directory
2021-04-26 13:37:19 -07:00
damirka
1676d12f66
makes import path relative to program directory
2021-04-26 23:02:35 +03:00
damirka
5d359f23f5
Merge branch 'master' into feature/input-kebab
2021-04-26 22:25:10 +03:00
gluax
438c20c14d
merge master, resolve conflicts, login test is failing
2021-04-26 14:43:21 -04:00
collin
de685928e2
rename stage -> phase
2021-04-21 15:22:20 -07:00
damirka
ad86b23c01
adds search for @test(custom) inputs path in kebab case
...
- in Leo test envs can only be snake_cased
- while we suggest naming inputs and folders in kebab-case
- this patch searches for both test_input and test-input options in inputs
2021-04-21 15:27:10 +03:00
Protryon
534f36a077
compiler tests
2021-04-19 18:08:14 -07:00
gluax
7031923921
clean up comments
2021-04-19 14:36:56 -04:00
gluax
8c497f0b7a
more test coverage
2021-04-19 13:53:49 -04:00
gluax
f7ec5de7c9
fix address in test
2021-04-15 17:08:30 -04:00
gluax
0016a1beaa
update to lastest master, with FormatString rename
2021-04-15 16:55:48 -04:00
howardwu
4eac040178
chore(leo): bump version for new release
2021-04-15 13:49:42 -07:00
Collin Chin
5f46ccc026
Merge pull request #869 from AleoHQ/bug/calling-mut-method-from-immutable-context
...
bug-fix-852
2021-04-15 11:51:11 -07:00
gluax
59f86c4b34
fix call for immutable context, add it to test
2021-04-15 14:34:22 -04:00
gluax
2f7ed99f76
pull max's required semi-colon branch to ensure sameness, MD file renamed to readme
2021-04-14 18:38:49 -04:00
Protryon
df60874da9
fix tests
2021-04-14 15:27:57 -07:00
Protryon
51920b5df7
require semicolons on return
2021-04-14 15:27:57 -07:00
gluax
6e595bd845
remove escaped double quote for now, address(...) removed
2021-04-14 17:43:02 -04:00
gluax
1803925b08
semi-colon after return statements are required
2021-04-14 16:59:07 -04:00
gluax
11c78da916
formatted string -> renamed format string
2021-04-14 16:15:27 -04:00
gluax
1231c5bc36
clippy fix
2021-04-14 16:03:53 -04:00
gluax
91634d6479
implicit input, removed from function input
2021-04-14 16:00:19 -04:00
damirka
fbe10b3aaf
adds empty line to leo example
2021-04-14 20:06:14 +03:00
gluax
eaa07934ed
resolve merge conflicts
2021-04-14 12:51:20 -04:00
damirka
794e0f1095
adds test for that scenario
2021-04-14 18:09:52 +03:00
Collin Chin
4ae6de4978
Add clippy flag
2021-04-13 15:22:31 -07:00
Collin Chin
e9988e9713
Add clippy flag
2021-04-13 15:22:01 -07:00
gluax
dc5d75da85
some clean up
2021-04-13 15:33:00 -04:00
gluax
a54488b45f
use stage macro for cleaner type inference
2021-04-13 13:49:16 -04:00
gluax
fdf54ea9a1
make macro to make this easier
2021-04-13 13:36:16 -04:00
gluax
61e791c671
type inference tests
2021-04-13 11:52:01 -04:00
gluax
f612ed441a
type inference, and canonicalization bug fixes
2021-04-12 16:21:44 -04:00
gluax
214d9e0f8c
More generic errors for reducing
2021-04-12 12:33:06 -04:00
gluax
29b8b2e301
add another test for tuple defined arrays
2021-04-12 11:47:19 -04:00
gluax
2bb85f52c1
quick fix, it's in order in this location not reversed, add tests
2021-04-09 22:52:14 -04:00
damirka
1e1697b7fe
Merge branch 'master' into feature/opti-cli-flag
2021-04-10 00:33:19 +03:00
howardwu
62ee4c3b8b
chore(leo): bump version for new release
2021-04-09 14:08:52 -07:00
gluax
bddcef732f
merge master, clean up reducer and directors
2021-04-09 12:48:59 -04:00
gluax
f963782d90
some bug fixing
2021-04-08 17:56:56 -04:00
gluax
cb2f77c7e4
program in, time to test
2021-04-08 16:36:37 -04:00
gluax
97b434986d
statements
2021-04-08 16:06:44 -04:00
Collin Chin
23bca1e595
Merge pull request #796 from ljedrz/align_integers_with_snarkvm
...
Align with snarkVM's Integer changes
2021-04-07 15:28:39 -07:00
gluax
55dae9bc14
push some expression solving, start statements
2021-04-07 13:21:10 -04:00
damirka
8ac7440daa
adds test, expects asg error
2021-04-07 20:20:58 +03:00
ljedrz
dee5f7dc15
fix: use a hand-written impl of get_index
...
Signed-off-by: ljedrz <ljedrz@gmail.com>
2021-04-07 10:01:26 +02:00
ljedrz
670e3c0b47
deps: update snarkVM
...
Signed-off-by: ljedrz <ljedrz@gmail.com>
2021-04-07 10:01:26 +02:00
ljedrz
74f02411e8
fix: align with snarkVM's Integer changes
...
Signed-off-by: ljedrz <ljedrz@gmail.com>
2021-04-07 10:01:26 +02:00
gluax
ac9414590f
reduce type and the basis for type_inference ast
2021-04-06 17:09:36 -04:00
gluax
541b83d492
working on directing expressions so far
2021-04-06 14:07:37 -04:00
Collin Chin
ea5bc5d693
Merge pull request #825 from AleoHQ/bug/815-mutable-method-imuttable-context
...
Bug/815 mutable method imuttable context
2021-04-05 21:12:39 -07:00
Collin Chin
f3f569b233
Merge pull request #824 from AleoHQ/feature/no-space-between-literals
...
Feature/no space between literals
2021-04-05 21:11:57 -07:00
gluax
38c36cc305
tests for all the integers
2021-04-05 12:59:08 -04:00
gluax
f0ce9d400e
testing the changes
2021-04-05 12:54:27 -04:00
damirka
2578be4287
fix test
2021-04-05 19:37:16 +03:00
damirka
03b2af4aaa
Merge branch 'master' into unused-code-bye-bye
2021-04-05 16:40:30 +03:00
damirka
a588c18100
clippy
2021-04-05 16:39:38 +03:00
damirka
044dc96e58
adds tests for outputfile
2021-04-05 16:08:54 +03:00
gluax
f44dcc1e96
test for bug
2021-04-02 04:50:14 -04:00
gluax
dc8a04e872
fix test
2021-03-31 14:59:45 -04:00
gluax
24e5d5365b
resolve all the merge conflicts
2021-03-31 14:08:38 -04:00
damirka
41600d0261
removed unused errors in compiler
2021-03-31 18:06:22 +03:00
gluax
34f0f1519a
merge latest abnf branch
2021-03-30 19:38:37 -04:00
Collin Chin
bb8534bad1
Merge pull request #801 from ljedrz/dedup_code
...
Deduplicate code in Integer::allocate_type
2021-03-30 15:24:35 -07:00
collin
5bfca36fc7
fix array indexing bug and add test
2021-03-30 14:28:22 -07:00
Protryon
426cfbc88c
address todos
2021-03-29 15:57:17 -07:00
Protryon
a763075e99
runtime array indexing
2021-03-29 14:16:53 -07:00
collin
9be13dfd51
update comments
2021-03-29 12:12:38 -07:00
collin
6774cbb01c
fix canonicalization tests
2021-03-29 11:24:58 -07:00
gluax
e1a0838888
global consts work, time to add them to reducers and phases
2021-03-29 12:55:49 -04:00
damirka
c21114c161
adds compiler optimizations flags to build and other commands
...
- optimizations can either be turned all together or specified
- removed deprecated clippy rules, followed clippy
- removed library file logic from build command, we don't have libraries
2021-03-28 19:28:00 +03:00
damirka
5fdf86f415
added compiler options to constructor and factory methods
2021-03-28 17:49:49 +03:00
gluax
dadb518598
forgot to update test json
2021-03-26 17:14:37 -04:00
gluax
3e912ef165
access member fix
2021-03-26 17:02:59 -04:00
gluax
871e52006b
quick bug fix
2021-03-26 16:51:03 -04:00
gluax
dd06df4b1d
it almost fully works, need to fix arrays, circuits and function calls
2021-03-26 15:47:11 -04:00
gluax
406692c2aa
merge master, next is parser
2021-03-26 12:07:48 -04:00
Protryon
63d1b1005f
format
2021-03-26 05:19:42 -07:00
Protryon
5985d8da41
tendrilize spans
2021-03-26 05:18:55 -07:00
collin
dcc2844a50
fix canonicalization test
2021-03-25 22:52:58 -07:00
collin
6a1afdabb7
Merge branch 'master' of https://github.com/AleoHQ/leo into feature/constant-mutable-declarations
2021-03-25 22:46:11 -07:00
collin
28bca20b97
pray to the clippy gods (allow upper case acronyms in state module)
2021-03-25 16:03:32 -07:00
collin
ef8517b8ce
allow clippy warns
2021-03-25 15:51:46 -07:00
gluax
c78ab699b8
another test
2021-03-25 16:52:43 -04:00
gluax
793cbb9f27
add test for const self, no clippy issues locally
2021-03-25 14:30:06 -04:00
gluax
696825eb6a
asked for refactors started, this will fail tests
2021-03-25 13:48:47 -04:00
gluax
3efc705a8c
fix tests merged from master
2021-03-25 11:19:42 -04:00
gluax
ab32aeb342
merge master
2021-03-24 15:13:53 -04:00
Collin Chin
94e7509690
Merge pull request #784 from AleoHQ/dead-code-elimination
...
Dead code elimination
2021-03-23 16:26:22 -07:00
collin
113ba12959
add tests for dead code elim
2021-03-23 15:49:56 -07:00
collin
99efdf00cb
add comments to asg passes
2021-03-23 15:33:13 -07:00
Collin Chin
46220aa889
Merge pull request #761 from AleoHQ/feature/const-inputs
...
[Feature, Compiler] Adds constant inputs
2021-03-23 15:19:44 -07:00
collin
3a6ca5018d
edit main input comments
2021-03-23 14:44:16 -07:00
collin
8172d73a71
fix bit not error
2021-03-23 14:38:20 -07:00
collin
68afcadfa4
update error descriptions
2021-03-23 14:36:22 -07:00