Javascript-based parser that translates Python code to the Mozilla abstract syntax tree AST format
PEG.js is used to generate the parser from a Python pegjs-style grammer definition
escodegen is used to generate Javascript from the AST
Create parser:
- pegjs python33.pegjs build\parser.js
Testing parser:
- node test\test.js
Testing end-to-end in browser:
- browserify -r ./build/parser.js -o ./build/bundle.js
- Nav to index.html