Commit Graph

4129 Commits

Author SHA1 Message Date
gluax
e0c94b8f15 add clear method 2022-04-27 09:14:59 -07:00
gluax
c36023a3d6 exit if any errors were emitted 2022-04-27 09:14:59 -07:00
gluax
22b20bdd6c handler shows all errors then causes an exit at the end 2022-04-27 09:14:59 -07:00
gluax
5ec3a24cf8 initial commit 2022-04-27 09:14:59 -07:00
Collin Chin
4acf285c35
Merge pull request #1772 from AleoHQ/dependabot/cargo/testnet3/self_update-0.30.0
Bump self_update from 0.29.0 to 0.30.0
2022-04-26 15:52:23 -07:00
Collin Chin
9227e1c126
Merge pull request #1771 from AleoHQ/dependabot/cargo/testnet3/clap-3.1.12
Bump clap from 3.1.11 to 3.1.12
2022-04-26 15:52:02 -07:00
dependabot[bot]
0771d41845
Bump self_update from 0.29.0 to 0.30.0
Bumps [self_update](https://github.com/jaemk/self_update) from 0.29.0 to 0.30.0.
- [Release notes](https://github.com/jaemk/self_update/releases)
- [Changelog](https://github.com/jaemk/self_update/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jaemk/self_update/commits)

---
updated-dependencies:
- dependency-name: self_update
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-26 10:29:46 +00:00
Eric McCarthy
344cc61d0c
[lexer] add "_fail" suffix on test file names for tests that are supposed to fail (#1770) 2022-04-25 08:58:41 -07:00
dependabot[bot]
d5e68f5a65
Bump clap from 3.1.11 to 3.1.12
Bumps [clap](https://github.com/clap-rs/clap) from 3.1.11 to 3.1.12.
- [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.11...v3.1.12)

---
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-25 10:18:05 +00:00
gluax
124e6b2e9b
[Impl] Ast Visitor (#1769)
* visitor pattern

* merge upstream, regen grammar readme

* rename reducer to passes

* update comments to properly reflect visitor

* fmt and clippy fixes

* fix comments

Co-authored-by: collin <16715212+collinc97@users.noreply.github.com>
2022-04-22 16:05:50 -07:00
Collin Chin
a7b2cbd9e2
Merge pull request #1768 from AleoHQ/dependabot/cargo/testnet3/clap-3.1.11
Bump clap from 3.1.10 to 3.1.11
2022-04-22 09:08:41 -07:00
Collin Chin
56498081f9
Merge pull request #1767 from AleoHQ/dependabot/cargo/testnet3/anyhow-1.0.57
Bump anyhow from 1.0.56 to 1.0.57
2022-04-22 09:08:33 -07:00
Collin Chin
896a6b2e47
Merge pull request #1766 from AleoHQ/abnf-bidi-doc
[ABNF] Improve doc comment about bidi exclusions.
2022-04-22 09:08:16 -07:00
collin
4fa9704974 merge testnet3 2022-04-22 09:07:47 -07:00
Collin Chin
5bddcb7d58
Merge pull request #1761 from AleoHQ/feature/warnings
[Impl] Warnings
2022-04-22 09:02:54 -07:00
dependabot[bot]
ef61542e5d
Bump clap from 3.1.10 to 3.1.11
Bumps [clap](https://github.com/clap-rs/clap) from 3.1.10 to 3.1.11.
- [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.10...v3.1.11)

---
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-22 10:15:34 +00:00
dependabot[bot]
a35c43364d
Bump anyhow from 1.0.56 to 1.0.57
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.56 to 1.0.57.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.56...1.0.57)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-22 10:15:27 +00:00
Alessandro Coglio
a8c674a881 [ABNF] Improve doc comment about bidi exclusions.
This mentions embeddings and isolates besides overrides, in accordance with the
official terminology at https://www.unicode.org/reports/tr9/.

This update was discussed and agreed with @bendyarm.

Note: The Leo Reference includes text explaining these exclusions, with links to
the document above as well to the web site and paper about Trojan source
exploits.
2022-04-21 20:02:25 -07:00
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