-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix "undefined function" error with mutually-recursive functions (#184)
Fix "undefined function" error with mutually-recursive functions When the AWK code defines mutually-recursive functions, the topological sort can't help us. So define all funcInfos in the initial call-graph pass before doing any resolver passes. This avoids the "undefined function" error in those cases. Add a minimal test for this, and also add a test of parsing/using the gron.awk code, as it's a nice, fairly complex test case. Fixes #183. Thanks @xonixx for the bug report!
- Loading branch information
Showing
5 changed files
with
422 additions
and
41 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.