-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance and cleanup lexer-parser interface (#107)
This commit separates lex operations, allowing developers to control the behavior of preprocessor aliasing. It also replaces 'preproc_aliasing'. Additionally, the commit refines control flow functions related to preprocessor directives: it consolidates if_elif_skip_lines and ifdef_else_skip_lines into a single function. This change is due to their similar functionalities, and it now encompasses all possible combinations of control flow. In the previous design, the former did not cover #else, and the latter overlooked #elif. Furthermore, this commit improves the naming of lex-related functions.
- Loading branch information
1 parent
4b83bb2
commit 33a7a90
Showing
2 changed files
with
80 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters