Commit 7db2f70
committed
add parsing for AST using
This adds parsing via `chumsky` and some necessary changes for it to
work:
- Change `error::Span` type to use byte offset for position. Also add
the `line-index` crate to replace the `line_col` method which was
previously used with the `pest` parser.
- Replace the `PestParse` trait with the `ChumskyParse` trait and the
`ParseFromStr` implementation for it.chumsky
1 parent 213e93a commit 7db2f70
4 files changed
Lines changed: 949 additions & 980 deletions
Some 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 | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | 26 | | |
29 | 27 | | |
30 | 28 | | |
| |||
34 | 32 | | |
35 | 33 | | |
36 | 34 | | |
| 35 | + | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| |||
0 commit comments