feat: add human-readable ABI parser #310
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #291
This is a draft just to let you know how I'm trying to solve it @DaniPopes.
Right now I implemented a
parse
method only forError
but the code is easily re-usable.Also now all my code is inside
item.rs
but I can move most of the real parser logic insidealloy-sol-type-parser
as you suggest in the issue description (maybe in a new file inside of that?)I also add some tests so that you can see how it works. Also these tests are in the
item.rs
file but I can move them somewhere else.PS: of course the CI gives error because I used
println!
in the tests just to have a quick view of how the parsing work. Later I can delete them or change them with the use ofassert