Closed Freddson closed 4 years ago
I'm making a parser using nearley, and when I try to use it, this error appears: ` var rules = rules.map(function (r) { return (new Rule(r.name, r.symbols, r.postprocess)); }); ^
TypeError: rules.map is not a function`
The code is: https://pastebin.com/tw2NbMq8
I don't know why is this happening. The code is correct for me.
I'm making a parser using nearley, and when I try to use it, this error appears: ` var rules = rules.map(function (r) { return (new Rule(r.name, r.symbols, r.postprocess)); }); ^
TypeError: rules.map is not a function`
The code is: https://pastebin.com/tw2NbMq8
I don't know why is this happening. The code is correct for me.