collin
38d701851d
clean up match
2022-05-24 12:49:38 -04:00
collin
c62f876765
type checker clean up and add docs
2022-05-24 12:11:55 -04:00
Collin Chin
944c5dcdd8
Update value.rs
2022-05-24 11:27:28 -04:00
gluax
eee58883a6
clean up and fix type set checking
2022-05-23 11:07:43 -07:00
collin
d0273719ab
push broken type checker
2022-05-23 11:40:14 -04:00
collin
b8780e888d
merge testnet3
2022-05-20 10:39:21 -04:00
collin
119c191836
merge testnet3
2022-05-18 14:29:54 -04:00
Collin Chin
4ce11080b5
Merge pull request #1825 from AleoHQ/fix-loop-end-inclusive
...
[parser] Fix to disallow inclusive loop ending bound.
2022-05-18 14:17:32 -04:00
Mazdak Farrokhzad
7f435eba48
remove expression statements
2022-05-17 14:41:30 +02:00
Alessandro Coglio
b1baf90719
[parser] Adhere to style.
2022-05-16 21:27:29 -07:00
Alessandro Coglio
1761b80578
[parser] Fix to disallow including loop ending bound.
...
This is not part of the current version of Leo (cf. ABNF grammar and Leo
Reference).
Adapt tests.
2022-05-16 21:24:42 -07:00
Alessandro Coglio
4989c50409
[parser] Attempt to fix style check.
2022-05-14 00:03:55 -07:00
Alessandro Coglio
21616fe167
[parser] Remove the input
keyword.
...
This is also not in the current grammar, and it does not look like it is going
to be re-added.
2022-05-13 23:50:33 -07:00
Alessandro Coglio
2fbaf759db
[parser] Remove mut and type keywords.
...
As discussed, these are no longer in the grammar. If and when we need them, we
will re-add them.
This also removes some extra code that gives a specific error when mut is
used. However, that is in fact another bug, because `mut` is a valid identifier
in the current grammar, and thus this extra code unjustly rejects code that uses
`mut` as an identifier.
Adjust some tests and expectations.
2022-05-13 23:36:08 -07:00
collin
f6aa7a578a
merge testnet3
2022-05-13 12:33:35 -07:00
collin
bacc0d7510
merge testnet3
2022-05-12 13:18:43 -07:00
collin
c8de6826c2
preserve char scalar nonscalar
2022-05-12 13:16:25 -07:00
Mazdak Farrokhzad
8d915339a0
span refactor: fix build + simplify &span
2022-05-12 16:24:17 +02:00
Mazdak Farrokhzad
0e5402773a
span refactor: fix rebase fallout
2022-05-12 16:17:53 +02:00
Mazdak Farrokhzad
508a95b2ba
span refactor: improve comment
2022-05-12 16:12:32 +02:00
Mazdak Farrokhzad
8bf06ed872
add remark re. parser benchmarks
2022-05-12 16:12:32 +02:00
Mazdak Farrokhzad
2d6e737f7e
span refactor: fix bench
2022-05-12 16:12:32 +02:00
Mazdak Farrokhzad
01a23f6e6e
cargo clippy + similar
2022-05-12 16:12:31 +02:00
Mazdak Farrokhzad
a5ad874ffb
spans: use source map backing
2022-05-12 16:09:18 +02:00
collin
8f17d6294a
rename scalar -> primitive
2022-05-11 14:09:12 -07:00
Alessandro Coglio
62f2267c2b
[parser] Fix parsing of ordering expressions.
...
Follow the grammar rule. The ordering operators are not associative.
Split previous tests into succeeding and failing ones.
Refresh expectations of old test files.
Add expectations of new test files.
2022-05-10 23:32:46 -07:00
collin
455603f0a4
cargo fmt
2022-05-10 16:35:53 -07:00
collin
60f6b77629
add scalar operation type checking
2022-05-10 16:26:35 -07:00
collin
55260ae5ad
add scalar type to ast
2022-05-10 15:34:42 -07:00
collin
9fe4a7281b
add scalar type to parser
2022-05-10 15:20:04 -07:00
collin
c1d36ee62e
remove const function code
2022-05-10 11:57:23 -07:00
collin
cca3c84ef4
remove unused imports code and tests
2022-05-10 11:22:30 -07:00
Collin Chin
80ca99a2f1
Merge pull request #1785 from AleoHQ/dependabot/cargo/testnet3/serde_yaml-0.8.24
...
Bump serde_yaml from 0.8.23 to 0.8.24
2022-05-10 11:17:55 -07:00
Collin Chin
be9fa96d9e
Merge pull request #1786 from AleoHQ/feature/type-checking
...
[Impl] type-checking
2022-05-10 11:17:44 -07:00
collin
45056ec27b
spelling
2022-05-10 11:06:59 -07:00
gluax
ab57ea1d34
fmt compiler test
2022-05-05 15:49:08 -07:00
gluax
d33e69bac8
re-introduce some disabled tests, fix some
2022-05-05 15:38:55 -07:00
collin
214f6bf5d7
make comments consistent
2022-05-04 15:44:41 -07:00
gluax
e03af95ff6
change output format, st doesn't change bc of input file
2022-05-04 15:43:07 -07:00
gluax
b97bf4c9bc
started going through deprecated tests, noticed parts of testframework were broken
2022-05-04 15:37:59 -07:00
gluax
67fd130c0c
had to handle negation of signed integers
2022-05-04 14:50:33 -07:00
gluax
2c252f7878
all current compiler tests pass, need to add more
2022-05-04 13:37:53 -07:00
gluax
9c8ac64871
expressions so far, and clean up, need to appropiately handle binary exprs
2022-05-04 09:27:00 -07:00
dependabot[bot]
4ad5c9892c
Bump serde_yaml from 0.8.23 to 0.8.24
...
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml ) from 0.8.23 to 0.8.24.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases )
- [Commits](https://github.com/dtolnay/serde-yaml/compare/0.8.23...0.8.24 )
---
updated-dependencies:
- dependency-name: serde_yaml
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-04 10:28:55 +00:00
gluax
5cb4a5d8c0
run tests so far, fix statements so far
2022-05-03 19:32:59 -07:00
gluax
db6292609d
refactor symbol variable to variable scope, create new symbol variable
2022-05-03 18:39:28 -07:00
gluax
d39ee31933
statements almost done, iteration statements causing issues
2022-05-03 17:33:46 -07:00
gluax
039a71359c
merge upstream testnet3, update grammar readme
2022-05-03 15:20:45 -07:00
gluax
4612602807
type checking errors so far
2022-05-03 14:00:40 -07:00
Collin Chin
a1335f56e8
Merge pull request #1780 from AleoHQ/dependabot/cargo/testnet3/serde-1.0.137
...
Bump serde from 1.0.136 to 1.0.137
2022-05-03 13:28:24 -07:00