kach / nearley

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

reutern being created instead of return #574

Closed tanmayhinge-zz closed 3 years ago

tanmayhinge-zz commented 3 years ago

i just updated npm to v7.6.3, i dont understand how it started causing this bug... but when i run npx nearleyc def.grammar -o def.js it is creating

        data=>{
            reuturn{
                type: "var_assignment",
                varname: data[0],
                value: data[2]
            }
        }
        data=>{
            return{
                type: "var_assignment",
                varname: data[0],
                value: data[2]
            }
        }

as you can see instead of return it is creating reutern, note the spelling errors... i wonder what might be causing this.. Complete on-going project is here - https://github.com/tanmayhinge/honeyscript