Open panayotisk opened 2 years ago
Is there a way I could use nearley.js to rename variables in code that can be parsed by nearley? I suppose I could parse the generated AST and modify the relevant parts, but then can I somehow convert it back into code?
That would be called printing. It is something you want to build, but it is not nearley's concern.
Is there a way I could use nearley.js to rename variables in code that can be parsed by nearley? I suppose I could parse the generated AST and modify the relevant parts, but then can I somehow convert it back into code?