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

Enhance and cleanup lexer-parser interface #107

Merged
merged 2 commits into from
Jan 17, 2024

Conversation

ChAoSUnItY
Copy link
Collaborator

This pull request cotains the following major changes:

  • Separate lex operations so developer can controls the behaviour of preprocessor aliasing, this also replaces preproc_aliasing functionality.
  • Refine control flow related preprocessor directives functions: Migrate if_elif_skip_lines and ifdef_else_skip_lines into single function due to the nature of same functionality and covers all possiblities of control flow combines. (In previous design, former one does not cover #else and later one does not cover #elif.)
  • Refine naming of lex related functions.

In addition, this pull request fixes hacks introduced in #106.

This pull request is part of #84.

- Separate lex operations so developer can controls the behaviour of
preprocessor aliasing, this also replaces `preproc_aliasing`
functionality.
- Refine control flow related preprocessor directives functions: Migrate
`if_elif_skip_lines` and `ifdef_else_skip_lines` into single function
due to the nature of same functionality and covers all possiblities of
control flow combines. (In previous design, former one does not cover
`#else` and later one does not cover `#elif`.)
- Refine naming of lex related functions.
src/lexer.c Outdated Show resolved Hide resolved
src/parser.c Outdated Show resolved Hide resolved
@jserv jserv merged commit 33a7a90 into sysprog21:master Jan 17, 2024
4 checks passed
@jserv
Copy link
Collaborator

jserv commented Jan 17, 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