mirror of
https://github.com/github/semantic.git
synced 2024-11-28 10:15:55 +03:00
.. | ||
src | ||
CHANGELOG.md | ||
LICENSE | ||
README.md | ||
semantic-ast.cabal | ||
Setup.hs | ||
test.py |
semantic-ast
This package has two goals:
- Develop a library that will produce ASTs;
- Provide a command line tool that will output ASTs in supported formats.
Design
The CLI interface
To output ASTs, run the following command passing in the file containing source code you intend to parse, with the option of specifying which format you'd like to return:
semantic-ast [source-file] --option
An example command is:
semantic-ast foo.js --sexpression
This will generate an AST
some AST