gluax
5034294d09
tokenizing almost working
2022-03-15 17:13:02 -07:00
0rphon
d25eb79594
improved test runner
2022-03-15 16:56:54 -07:00
0rphon
cc63b7e524
Merge branch 'testnet3' into improve-parser-tests
2022-03-15 15:38:41 -07:00
0rphon
0e1d1a43e9
removed tools/failing tests
2022-03-15 15:38:06 -07:00
gluax
3d1cc9a735
most things moved to a char parser
2022-03-15 14:53:42 -07:00
Collin Chin
83036d58b1
Merge pull request #1685 from AleoHQ/dependabot/cargo/testnet3/reqwest-0.11.10
...
Bump reqwest from 0.11.9 to 0.11.10
2022-03-15 14:51:06 -07:00
Collin Chin
07d03b0ff1
Merge pull request #1684 from AleoHQ/abnf-numeral-is-token
...
[ABNF] Add numerals to tokens.
2022-03-15 14:50:56 -07:00
Collin Chin
f886890e2b
Merge pull request #1679 from AleoHQ/abnf-doc-fix-b
...
[ABNF] Update some documentation
2022-03-15 10:22:54 -07:00
dependabot[bot]
2aa99d72cf
Bump reqwest from 0.11.9 to 0.11.10
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.9 to 0.11.10.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.9...v0.11.10 )
---
updated-dependencies:
- dependency-name: reqwest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-15 10:20:47 +00:00
Alessandro Coglio
efffcc98dc
[ABNF] Add numerals to tokens.
...
Given that arithmetic literals are now all typed in the grammar, we need
numerals to be listed as tokens. Otherwise, array dimensions and tuple indices
would not be tokens, but they must be.
2022-03-14 22:05:42 -07:00
0rphon
310944acc5
excluded failing tests, added new ones
2022-03-14 17:37:15 -07:00
0rphon
a9ed6dcc81
Update char.leo
2022-03-14 16:36:36 -07:00
0rphon
7c049177cb
Merge branch 'testnet3' into improve-parser-tests
2022-03-14 16:36:16 -07:00
0rphon
1604f10115
re-enabled tests, removed fuzzing hooks
2022-03-14 16:29:34 -07:00
Collin Chin
1e1e2b76a3
Merge pull request #1676 from AleoHQ/dependabot/cargo/testnet3/tracing-0.1.32
...
Bump tracing from 0.1.29 to 0.1.32
2022-03-14 14:27:20 -07:00
Collin Chin
647b25dc2d
Merge pull request #1678 from AleoHQ/bug/more-misc-parser-bug-fixes
...
[Fix] Fixes more Misc Parser issues.
2022-03-14 14:25:10 -07:00
Collin Chin
61c8cf8881
Merge pull request #1677 from AleoHQ/abnf-natural-to-numeral
...
Abnf natural to numeral
2022-03-14 14:21:00 -07:00
gluax
60fd2b6ec6
merge origin testnet3
2022-03-14 14:08:36 -07:00
collin
8ec01926e1
Merge branch 'testnet3' of https://github.com/AleoHQ/leo into abnf-doc-fix-b
2022-03-14 14:05:10 -07:00
dependabot[bot]
c5df9b3369
Bump tracing from 0.1.29 to 0.1.32
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.29 to 0.1.32.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.29...tracing-0.1.32 )
---
updated-dependencies:
- dependency-name: tracing
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-14 21:04:18 +00:00
collin
aa339eab0a
Merge branch 'testnet3' of https://github.com/AleoHQ/leo into abnf-natural-to-numeral
2022-03-14 14:03:35 -07:00
Collin Chin
81cd2e117d
Merge pull request #1680 from AleoHQ/ci/remove-scoop-windows
...
Ci remove scoop windows dependency
2022-03-14 14:02:45 -07:00
collin
175e534731
Remove cd dir
2022-03-14 13:34:01 -07:00
collin
aceee46534
Replace broken scoop windows ci
2022-03-14 13:14:19 -07:00
Eric McCarthy
572d59d67f
[ABNF] regenerate README.md
2022-03-14 12:35:56 -07:00
Eric McCarthy
ffa8200d92
[ABNF] update some documentation
2022-03-14 12:29:19 -07:00
gluax
2381e2e20f
scoop update fix
2022-03-14 08:55:11 -07:00
gluax
e484d5124f
comment fixes
2022-03-14 08:16:58 -07:00
gluax
8e0a59dc5d
fmt
2022-03-14 08:12:29 -07:00
gluax
ef8d0415e7
change parens around variable into recoverable error
2022-03-14 08:12:03 -07:00
gluax
9a45c2ae99
fix array around 1 element array dim size
2022-03-14 08:07:01 -07:00
gluax
2c30cba70f
remove parened field
2022-03-14 07:58:51 -07:00
Alessandro Coglio
3f6b17646c
[ABNF] Add a clarification to the documentation.
...
No grammar change in this commit.
2022-03-10 15:31:31 -08:00
Alessandro Coglio
ca3ae89a3e
[ABNF] Rename 'natural' to 'numeral'.
...
This applies both to the rule name and to the terminology used for that, namely
for a non-empty sequence of decimal digits.
While 'natural' was meant to describe a natural number (i.e. a non-negative
integer: 0, 1, 2, ...), it is perhaps not a familiar term to many users.
On the other hand, 'integer', while often used in programming languages for this
kind of thing, is not ideal as integers may be negative.
Also, assuming type inference, a lone numeral like `17` may actually not denote
an integer number at all, because it may actually denote a group element if type
inference turns it into `17group`, and group elements are not integers.
All in all, 'numeral' seems like a good term, also according to its dictionary
definition. It is used in the Java grammar to denote this kind of thing, for
instance.
If, in the future, we want to allow hexadecimal, octal, or binary notation, we
could rename this to `decimal-numeral`, introduce `hexadecimal-numeral`,
`octal-numeral`, and `binary-numeral`, and `numeral` as the union of these.
2022-03-10 15:23:58 -08:00
Collin Chin
4dd70474f5
Merge pull request #1669 from AleoHQ/abnf-integer-fix
...
[ABNF] Fix use of integers in literals.
2022-03-10 12:02:10 -08:00
0rphon
3c258bf3a4
code cleanup, added tests, marked dangerous code for review
2022-03-09 15:16:52 -08:00
Collin Chin
da6c48bc6d
Merge pull request #1673 from AleoHQ/dependabot/cargo/testnet3/tracing-subscriber-0.3.9
...
Bump tracing-subscriber from 0.3.7 to 0.3.9
2022-03-09 13:19:18 -08:00
Collin Chin
19201a7a69
Merge pull request #1672 from AleoHQ/dependabot/cargo/testnet3/regex-1.5.5
...
Bump regex from 1.5.4 to 1.5.5
2022-03-09 13:18:56 -08:00
Collin Chin
9151188803
Merge pull request #1670 from AleoHQ/abnf-doc-fix
...
[ABNF] Update some documentation.
2022-03-09 13:18:19 -08:00
gluax
377c65be21
fix issues from fixing a panic
2022-03-09 12:08:15 -08:00
gluax
a227e7c113
add tests, fix namespaces on older tests, fix another bug
2022-03-09 11:11:30 -08:00
gluax
91c0f5ae9d
resolve some error messages panicing
2022-03-09 09:46:07 -08:00
dependabot[bot]
e534cbb0df
Bump tracing-subscriber from 0.3.7 to 0.3.9
...
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing ) from 0.3.7 to 0.3.9.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.7...tracing-subscriber-0.3.9 )
---
updated-dependencies:
- dependency-name: tracing-subscriber
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-09 10:18:25 +00:00
dependabot[bot]
bd68eefb45
Bump regex from 1.5.4 to 1.5.5
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.5.4 to 1.5.5.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.5.4...1.5.5 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-09 10:18:18 +00:00
Alessandro Coglio
f735ca8864
[ABNF] Update some documentation.
...
This does not change the grammar. It merely updates some text in the comments,
which shows a rule that was changed at some point but its copy in the comments
was not properly updated.
Thanks to @bendyarm for noticing this.
2022-03-08 23:23:38 -08:00
Alessandro Coglio
7e930d8670
[ABNF] Fix use of integers in literals.
...
This removes the rule for `integer` and uses `natural` for all numeric literals.
Otherwise, lexing would be context-dependent for no good reason.
This is consistent with the lexer and parser of the Leo compiler.
Note that, for instance, `-1field` is not a literal, but rather a unary
expression where `-` is applied to the literal `1field`. This is consistent with
other languages too.
2022-03-08 21:08:59 -08:00
0rphon
874edd8fcc
Merge branch 'testnet3' into improve-parser-tests
2022-03-08 18:25:43 -08:00
gluax
86000325bf
remove option types in rest of places, clean up canonicalization
2022-03-08 12:58:32 -08:00
Collin Chin
646c5eb697
Merge pull request #1665 from AleoHQ/dependabot/cargo/testnet3/clap-3.1.6
...
Bump clap from 3.1.5 to 3.1.6
2022-03-08 11:42:48 -08:00
Collin Chin
db60376204
Merge pull request #1664 from AleoHQ/dependabot/cargo/testnet3/anyhow-1.0.56
...
Bump anyhow from 1.0.55 to 1.0.56
2022-03-08 11:42:35 -08:00