collin
f89966fe32
merge testnet3
2022-04-21 14:37:33 -07:00
Collin Chin
c72f860349
Merge pull request #1763 from AleoHQ/dependabot/cargo/testnet3/clap-3.1.10
...
Bump clap from 3.1.9 to 3.1.10
2022-04-21 12:58:15 -07:00
Collin Chin
74365cb076
Merge pull request #1765 from AleoHQ/ast-doc-posnum
...
[AST] Update doc comment to not mention Pest grammar.
2022-04-21 12:58:05 -07:00
Alessandro Coglio
d2cca18f07
[AST] Update doc comment to not mention Pest grammar.
2022-04-20 22:07:33 -07:00
dependabot[bot]
6fed7a1288
Bump clap from 3.1.9 to 3.1.10
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.1.9 to 3.1.10.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.1.9...v3.1.10 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-20 22:48:17 +00:00
0rphon
b767498152
added custom panic hook ( #1762 )
2022-04-20 15:46:41 -07:00
gluax
f9dcbf3e8b
update leo errors readme
2022-04-20 11:06:40 -07:00
Collin Chin
23fca6af47
Merge pull request #1751 from AleoHQ/abnf-bidi-overrides
...
[ABNF] disallow bidi override codepoints
2022-04-20 09:34:00 -07:00
Eric McCarthy
8eecca1af7
[tests] fix missing file extension on test file and remove vestigial dollar sign
2022-04-19 14:19:55 -07:00
collin
15660a3ed7
cargo fmt
2022-04-19 14:01:01 -07:00
Collin Chin
f1c8c466eb
Merge pull request #1760 from AleoHQ/dependabot/cargo/testnet3/backtrace-0.3.65
...
Bump backtrace from 0.3.64 to 0.3.65
2022-04-19 13:50:59 -07:00
Eric McCarthy
0611ddd94f
[ABNF] fix merge of #1759
2022-04-19 13:34:56 -07:00
Eric McCarthy
3f9a51041f
[ABNF] merge #1759
2022-04-19 13:28:51 -07:00
Eric McCarthy
3227930df9
[lexer] add fail tests for bidi overrides
2022-04-19 13:16:09 -07:00
gluax
8c31079792
merge upstream grammar changes
2022-04-19 13:02:14 -07:00
gluax
10d90253ac
Merge branch 'testnet3' of github.com:AleoHQ/leo into feature/warnings
2022-04-19 13:01:24 -07:00
Eric McCarthy
4fa12a0b33
[lexer] return error if bidi override code point seen in comment, character, or string
2022-04-19 13:00:10 -07:00
gluax
98c7ced6fe
merge upstream testnet3
2022-04-19 12:58:28 -07:00
dependabot[bot]
9259076c20
Bump backtrace from 0.3.64 to 0.3.65
...
Bumps [backtrace](https://github.com/rust-lang/backtrace-rs ) from 0.3.64 to 0.3.65.
- [Release notes](https://github.com/rust-lang/backtrace-rs/releases )
- [Commits](https://github.com/rust-lang/backtrace-rs/compare/0.3.64...0.3.65 )
---
updated-dependencies:
- dependency-name: backtrace
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-19 19:58:22 +00:00
Collin Chin
e1f962fcf6
Merge pull request #1759 from AleoHQ/abnf-numeric-literals
...
[ABNF] Add rule for numeric literals.
2022-04-19 12:56:46 -07:00
Collin Chin
645b5a2be7
Merge pull request #1750 from AleoHQ/address-check
...
Address check
2022-04-19 12:56:27 -07:00
Collin Chin
f002637d73
Merge pull request #1748 from AleoHQ/parser-refactor
...
Parser: store current + previous tokens
2022-04-19 12:55:46 -07:00
gluax
7b849b620c
Merge branch 'parser-refactor' of github.com:AleoHQ/leo into feature/warnings
2022-04-19 12:47:06 -07:00
Eric McCarthy
ac005628fe
[ABNF] merge #1752
2022-04-19 11:59:22 -07:00
Mazdak Farrokhzad
267fda05e7
simplify parse_assign_statement
2022-04-19 14:11:09 +02:00
Alessandro Coglio
cb30765ab5
[ABNF] Add rule for numeric literals.
...
This does not change the language. It just factors things better and introduces
more nomenclature in the grammar.
2022-04-18 17:35:14 -07:00
Collin Chin
92ddc88477
Merge pull request #1755 from AleoHQ/abnf-input-files
...
[ABNF] Add (first draft of) input grammar.
2022-04-18 14:38:08 -07:00
gluax
54c936cc61
leo warnings, disable unused errors for now
2022-04-18 14:06:28 -07:00
gluax
c8b44141eb
fix some span and input parsing issues
2022-04-18 11:33:43 -07:00
Collin Chin
c25e11afb2
Merge pull request #1757 from AleoHQ/dependabot/cargo/testnet3/clap-3.1.9
...
Bump clap from 3.1.8 to 3.1.9
2022-04-18 09:10:09 -07:00
Collin Chin
839ec01322
Merge pull request #1754 from AleoHQ/dependabot/cargo/testnet3/tracing-0.1.34
...
Bump tracing from 0.1.33 to 0.1.34
2022-04-18 09:10:02 -07:00
Collin Chin
0d4a5ffad1
Merge pull request #1753 from AleoHQ/dependabot/cargo/testnet3/toml-0.5.9
...
Bump toml from 0.5.8 to 0.5.9
2022-04-18 09:09:50 -07:00
Collin Chin
7ffc640718
Merge pull request #1752 from AleoHQ/abnf-bin-expr
...
[ABNF] Add rule for binary expressions.
2022-04-18 09:09:31 -07:00
dependabot[bot]
711dd9309f
Bump clap from 3.1.8 to 3.1.9
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.1.8 to 3.1.9.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.1.8...v3.1.9 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-18 10:20:25 +00:00
Alessandro Coglio
29f797efae
[ABNF] Add (first draft of) input grammar.
...
This is the (sub)grammar for input files. It is an initial draft, written based
on the Notion page 'Leo Input File Doc/Spec'. This should be compared with the
currently implemented parser of input (i.e. .in) files.
As the Leo Reference will describe (that part has not been written yet), the
input grammar is based on the lexical grammar, i.e. an input file consists of
tokens, comments, and whitespace. However, only some tokens (compared to the
syntactic grammar for Leo code files) are used, namely the ones reachable from
the `input-file` nonterminal.
Currently (i.e. im this initial version of Leo) `input-type` is (any) `type` and
`input-expression` is just a `literal`, but these may evolve as we extend the
language (e.g. we'll probably disallow circuit types and allow tuple and array
constructions). The intent is that `input-type` will be a subset of `type` and
that `input-expression` will be a subset of `expression`.
2022-04-15 19:54:41 -07:00
dependabot[bot]
cf8a780359
Bump tracing from 0.1.33 to 0.1.34
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.33 to 0.1.34.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.33...tracing-0.1.34 )
---
updated-dependencies:
- dependency-name: tracing
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-15 10:13:39 +00:00
dependabot[bot]
99027b2c69
Bump toml from 0.5.8 to 0.5.9
...
Bumps [toml](https://github.com/alexcrichton/toml-rs ) from 0.5.8 to 0.5.9.
- [Release notes](https://github.com/alexcrichton/toml-rs/releases )
- [Commits](https://github.com/alexcrichton/toml-rs/compare/0.5.8...0.5.9 )
---
updated-dependencies:
- dependency-name: toml
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-15 10:13:24 +00:00
Alessandro Coglio
7691e35d86
[ABNF] Add rule for binary expressions.
...
This does not change the language. It just adds a rule to name binary
expressions explicitly. This makes the relation with ternary expressions
clearer, and as usual it explicates more terminology.
2022-04-14 22:26:25 -07:00
Eric McCarthy
447e50f8b4
[ABNF] disallow bidi override codepoints
2022-04-14 02:04:20 -07:00
Collin Chin
cd8ac3b8d2
remove unused code and dependencies ( #1749 )
2022-04-13 17:08:45 -07:00
collin
065f16a93b
cargo fmt
2022-04-13 15:25:35 -07:00
collin
f53817c5f5
implement real address literal check
2022-04-13 15:21:08 -07:00
collin
b6fb3d0a36
remove unused code and dependencies
2022-04-13 14:28:01 -07:00
Mazdak Farrokhzad
b955b77ac2
parser: minor cleanup + span fix
2022-04-13 22:52:53 +02:00
Mazdak Farrokhzad
66efa91b08
simplify parse_function_parameter_mode
2022-04-13 22:27:56 +02:00
Mazdak Farrokhzad
31fcc2f216
parser: store (prev_)token
2022-04-13 22:20:48 +02:00
Alessandro Coglio
515e471c8b
[ABNF] Add a rule for function calls. ( #1747 )
...
* [ABNF] Add a rule for function calls.
This does not change the language. It just slightly reformulates the grammar for
greater clarity and to help establish a nomenclature for constructs.
Also remove a trailing space.
* [ABNF] Re-generate markdown.
Co-authored-by: collin <16715212+collinc97@users.noreply.github.com>
2022-04-13 12:22:04 -07:00
Mazdak Farrokhzad
6a81022c26
leave todo re. sizeof Span
2022-04-13 21:05:17 +02:00
Mazdak Farrokhzad
4ac64710b5
lazify lexer
2022-04-13 21:05:17 +02:00
Collin Chin
49306f6132
Merge pull request #1746 from AleoHQ/feature/rename-const-params-to-constant
...
[Impl] Rename const fn args to constant
2022-04-12 14:16:05 -07:00