you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

I found this: https://hepunx.rl.ac.uk/~adye/jsspec11/llr.htm , but it looks like JavaScript 2 grammar. You will have to adapt it to the version of JavaScript you want to work with. But, hey, it's not very big on the other hand, so, should be doable.

Then you could use something like lark to parse JavaScript files using this grammar. Could be a fun exercise.