-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ #163 ] Set Bison max stack size to 10.000.000 (for right recursion)
Default is only 10.000, which seems an anachronism in 2019. Parsing right-recursive categories needs O(n) stack size, thus, YYMAXDEPTH is a hard limit on the depth of right recursion. BNFC attempts to rewrite right recursion to left recursion, but only when it can be done easily. Thus, we might still have right recursion left in the generated Bison grammar.
- Loading branch information
1 parent
b2e8ef1
commit 4aff753
Showing
3 changed files
with
30 additions
and
21 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