You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You mean a PEG.js generated parser that can parse ES2018+ JavaScript? Although it is possible to make one in the PEG.js grammar (I made a working ES2015 parser 2 years ago, lost now with my broken laptop 😢), currently there is none that I'm aware of, no. But once Stage 1 of #523 is done, it's one of the things I want to get around to doing.
I think that is not a modern (ES2017) ECMAScript grammar.
But could be used as a basis to build upon.
I did try to use this example ES5 grammar in the past but it seems to have kind of choked on anything but very small inputs. So I recommend including a small performance test if/when such a grammar is implemented.
Issue type
Description
Can pegjs grammar represent current javascript grammar? Is there any up to date (or just existing) pegjs grammar for javascript?
The text was updated successfully, but these errors were encountered: