Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Do not generate YYDEBUG statements for unused states labels.
Currently DFA states with unused labels still have their own index, but this will change soon and there won't be any state number to pass to YYDEBUG. This patch prepares the code by removing YYDEBUG statements for states with unused labels. One exception is the initial label: it may be unused (if there are no transitions into the initial state), but still have a valid index. Keep YYDEBUG statements for the initial label as they may be useful.
- Loading branch information
Showing
10 changed files
with
119 additions
and
610 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
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
Oops, something went wrong.