Skip to content

[NFC] Extract out function for parseModuleBody - #8080

Merged
stevenfontanella merged 2 commits into
mainfrom
parsemodulebody
Dec 1, 2025
Merged

stevenfontanella merged 2 commits into
mainfrom
parsemodulebody

Conversation

@stevenfontanella

Copy link
Copy Markdown
Member

For use in #8058. In some cases (e.g. for parsing (module definition ...)), we want to parse the body of a module without the initial (module name? ...) S-expression. parseModule parses either the full (module ...) S-expression or just the module body since some cases consist only of a module body. Add parseModuleBody which only parses the module body.

Comment thread src/parser/wat-parser.cpp Resolved
@stevenfontanella
stevenfontanella merged commit 5efa505 into main Dec 1, 2025
@stevenfontanella
stevenfontanella deleted the parsemodulebody branch December 1, 2025 22:56
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.

2 participants