-
Notifications
You must be signed in to change notification settings - Fork 830
[Parser][NFC] Create a public wat-lexer.h header #4695
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
Conversation
|
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
1875a2b to
acbd1f4
Compare
wat-parser-internal.h was already quite large after implementing just the lexer, so it made sense to rename it to be lexer-specific and start a new file for the higher-level parser. Also make it a proper .cpp file and split the testable interface out into wat-lexer.h.
aheejin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You said you named the previous header wat-parser-internal.h because this was not meant to be used from outside, and you were gonna create a new header with public API. Now these headers don't have internal in the names, are they meant to be public? But this has the same contents as the previous wat-parser-internal.h.
| @@ -0,0 +1,1004 @@ | |||
| /* | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, I wonder why git doesn't recognize this as a file move wat-parser.cpp->wat-lexer.cpp..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it does now 👍
|
If there were a good way to make a hierarchy of headers, then I would make I doubt any other code in binaryen will want to use the lexer directly, but if it does, that would be ok after this change. |
|
Graphite Merge Job Current status: ✅ Merged This pull request was successfully merged as part of a stack. This comment was auto-generated by Graphite. Job Reference: UksnMFlJsREOdJP1qpqD |

wat-parser-internal.h was already quite large after implementing just the lexer,
so it made sense to rename it to be lexer-specific and start a new file for the
higher-level parser. Also make it a proper .cpp file and split the testable
interface out into wat-lexer.h.