Commit 0d5fa04
authored
[v2] add slang v2 lexer (#1462)
This final PR adds the actual lexer using the `logos` crate, and adds
some unit tests for it. Note that (partial) integration with sourcify
was added under `temp_sourcify.rs`, to be removed once the lexer is used
(and tested) through the parser instead.
There are some remaining work items to be done (grep for `TODO(v2)`
comments), but it can follow in later PRs.
> NOTE: this is a set of PRs to add the lexer v2, to make reviewing
smaller chunks easier:
>
> 1. #1457
> 2. #1458
> 3. #1459
> 4. #1460
> 5. #1461
> 6. #14621 parent 4401976 commit 0d5fa04
File tree
29 files changed
+2279
-15
lines changed- crates
- codegen-v2/parser
- src
- lexer
- codegen
- generator
- src
- runner
- src
- solidity-v2/outputs/cargo/parser
- src
- lexer
- temp_sourcify
- tests
- solidity/testing/sourcify
- src/run
29 files changed
+2279
-15
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| 52 | + | |
| 53 | + | |
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
| |||
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
| 66 | + | |
| 67 | + | |
62 | 68 | | |
63 | 69 | | |
64 | 70 | | |
| |||
94 | 100 | | |
95 | 101 | | |
96 | 102 | | |
| 103 | + | |
| 104 | + | |
97 | 105 | | |
98 | 106 | | |
99 | 107 | | |
| |||
125 | 133 | | |
126 | 134 | | |
127 | 135 | | |
| 136 | + | |
128 | 137 | | |
129 | 138 | | |
130 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments