Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internal/abi: Improve ABI Parser #39

Merged
merged 22 commits into from
Mar 10, 2023
Merged

internal/abi: Improve ABI Parser #39

merged 22 commits into from
Mar 10, 2023

Conversation

lmittmann
Copy link
Owner

@lmittmann lmittmann commented Jan 30, 2023

This PR fixes #36.

@lmittmann lmittmann changed the title Issue 36 Improve ABI Parser Jan 31, 2023
@lmittmann lmittmann changed the title Improve ABI Parser internal/abi: Improve ABI Parser Mar 10, 2023
@lmittmann lmittmann marked this pull request as ready for review March 10, 2023 20:48
@lmittmann lmittmann merged commit 61f4b69 into main Mar 10, 2023
@lmittmann lmittmann deleted the issue-36 branch March 10, 2023 20:50
lmittmann added a commit that referenced this pull request Mar 12, 2023
* simplified lexer and dropped all context logic

* added lex item type EOF

* updated type lookup table

* updated parser

* support `indexed` keyword
* improved type parsing
* support arrays or slices of tuples

* refactored `parse` and `parseWithName`

* added old benchmark

* cleanup `typeToString`

* added `hash` type

* populate `TupleType` when decoding

* fixing tag name

* improved `Decode(...)`

* dropped `t.Parallel()`

* fixed testcase

* refactored `Parse` funcs

* cleanup

* added tuple-slice tests

* improved `Func` tests

* fixed error comparison

* implemented and refactored copying

* fixed testcase

* minor test simplification

* `{hashPtr, boolPtr} -> ptr[T]`

* fixed #35

---------

Co-authored-by: lmittmann <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

internal/abi: Improve ABI Parser
1 participant