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

Migrate preprocessor directive handling #106

Merged
merged 5 commits into from
Jan 16, 2024

Conversation

ChAoSUnItY
Copy link
Collaborator

This pull request migrates preprocessor directive handling to parser unit, which unify the behaviour of lexer unit by only handling lexical analysis. This also improves preprocessor directive parsing by processing it with token instead of raw string.

Notice that in this pull request, there are several hacks were introduced due to previous faulty design (See lexer.c#lex_accept).

This pull request is part of #84.

@ChAoSUnItY ChAoSUnItY requested a review from jserv January 16, 2024 03:19
This is for consistency for both body statement and global statement
parsing.
src/lexer.c Outdated Show resolved Hide resolved
@jserv jserv merged commit dfc03e4 into sysprog21:master Jan 16, 2024
4 checks passed
@jserv
Copy link
Collaborator

jserv commented Jan 16, 2024

Thank @ChAoSUnItY for contributing!

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