-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correctly handle preproc alternatives
This commit merges functions "elseBlock" and "elifBlock" in a single function "alternativeBlock". Any call to either function is replaced by a call to "alternativeBlock", which cover all alternatives (elif, elifdef and else). The goal is twofold: 1) Correct the grammar to allow all kind of alternatives independently of the "if" directive. Before the fix, "#if" alternative was generated by elseBlock only, and thus disallow "#elifdef" as a follow-up. 2) As a side effect, simplify the parser.
- Loading branch information
Showing
6 changed files
with
78,244 additions
and
102,433 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.