This commit is contained in:
Sidharth Vinod
2022-08-31 23:16:57 +05:30
parent 5b63260240
commit 4f0e18b088
7 changed files with 229 additions and 4 deletions

9
jisonTransformer.js Normal file
View File

@@ -0,0 +1,9 @@
const { Generator } = require('jison');
module.exports = {
process(source, filename, config, transformOptions) {
return new Generator(source, {
'token-stack': true,
}).generate();
},
};