-
-
Save caitp/444ab494e6425b847824 to your computer and use it in GitHub Desktop.
Backtracking by a single token in V8
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
+ -> current | |
<prev> <current> <next> | |
+ | |
next -> return current without scanning | |
prev -> assert failure | |
current -> returns prev | |
+ | |
next -> scan and return current | |
prev -> set mode to prev, and return prev | |
current -> returns current |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment