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

Refactor parser #1

Open
gauravgahlot opened this issue Dec 22, 2024 · 0 comments
Open

Refactor parser #1

gauravgahlot opened this issue Dec 22, 2024 · 0 comments
Assignees

Comments

@gauravgahlot
Copy link
Owner

  • The parser should be able to parse all the section at once.
  • The function parse_sections should return a structure like
pub(crate) struct Sections {
    pub types: Vec<u8>,     // Raw type section payload
    pub functions: Vec<u8>, // Raw function section payload
    pub exports: Vec<Export>, // Parsed exports
    pub funcs: Vec<Func>,   // Parsed function bodies
    // Other sections...
}
  • This would mean we shouldn’t change its structure but instead work within this framework.
@gauravgahlot gauravgahlot self-assigned this Dec 22, 2024
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

No branches or pull requests

1 participant