2 ms·
This is a powerful idea! If I understand Monocle's use case, JS has similar AST parsing and code generation tools that are used broadly. There may be some ideas
by kevlened 5y ago
This is a powerful idea! If I understand Monocle's use case, JS has similar AST parsing and code generation tools that are used broadly. There may be some ideas to learn from that community.
JS AST specs: estree [0] and babel's AST [1]
Parsers: babel [2], acorn [3], or espree [4]
Transformers: babel, recast [5], or jscodeshift [6]
Codegen: babel or escodegen [7]
[0] https://github.com/estree/estree https://github.com/estree/estree
[1] https://babeljs.io/docs/en/babel-parser#output https://babeljs.io/docs/en/babel-parser#output
[2] https://github.com/babel/babel https://github.com/babel/babel
[3] https://github.com/acornjs/acorn https://github.com/acornjs/acorn
[4] https://github.com/eslint/espree https://github.com/eslint/espree
[5] https://github.com/benjamn/recast https://github.com/benjamn/recast
[6] https://github.com/facebook/jscodeshift https://github.com/facebook/jscodeshift
[7] https://github.com/estools/escodegen https://github.com/estools/escodegen