kach / nearley

📜🔜🌲 Simple, fast, powerful parser toolkit for JavaScript.
https://nearley.js.org
MIT License
3.57k stars 232 forks source link

wants[exp].push is not a function #542

Closed Floffah closed 3 years ago

Floffah commented 3 years ago

You can see all my code here: https://github.com/floffah/confuscript

It appears to fail when i add the constructor rule to the classbody rule. if constructor is there but not in classbody then this error does not occur. this is inside the file lang/class/method.ne and lang/class/rootclass.ne

Floffah commented 3 years ago

ok turns out its just because javascript doesnt like rules named constructor