Skip to content

Commit

Permalink
✨ Chumsky Parser
Browse files Browse the repository at this point in the history
* added lexer

* added parser (wip)

* added instructions

* cleanup

* added abi types (wip)

* extracted `Span`

* fix

* fixed `sol_type` parser

* use choice instead of or

* or to choice

* dropped old grammar

* added parse method

* dropped clap for argh

* ci on pr

* cleanup

* refactored ast to separate mod

* support public/external, view/pure, payable/nonpayable keywords in sol function definitions

* simplify instruction parser

* updated lexing error handling

* added ariadne (utf8-not working)

* fixed span positions of src with utf8 chars

* return parser errors in `parse`

---------

Co-authored-by: lmittmann <[email protected]>
  • Loading branch information
lmittmann and lmittmann authored Oct 17, 2024
1 parent aa340ec commit 2a97075
Show file tree
Hide file tree
Showing 14 changed files with 1,199 additions and 704 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Rust CI
on: [push]
on: [push, pull_request]

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -49,4 +49,4 @@ jobs:
cache-on-failure: true
- name: build
id: build
run: cargo build --workspace --all --locked
run: cargo build --workspace --all --locked
Loading

0 comments on commit 2a97075

Please sign in to comment.