forked from facebook/hermes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: This is a rewrite of the regexp parser, aiming to simplify it. The current parser attempts to use a PEG formalism closely following the grammar specified in the ES6 spec. Productions are explored and rejected in turn. However the grammar is incomplete and often confusing. Reimplement this using a more intuitive recursive descent approach. This prepares to switch to an explicit stack, fixing a stack overflow when parsing deeply nested regexps. Reviewed By: avp Differential Revision: D16750941 fbshipit-source-id: 3bd4a1fa75890e4728234c0e776824ca41d6f72f
- Loading branch information
1 parent
c257da1
commit edeef8a
Showing
2 changed files
with
553 additions
and
1,031 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
Oops, something went wrong.