1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 01:47:01 +03:00
semantic/semantic-ast
2019-10-11 12:48:40 -04:00
..
src include both inputs in SemanticAST 2019-10-11 12:48:40 -04:00
CHANGELOG.md create semantic-ast 2019-09-10 14:07:58 -04:00
LICENSE create semantic-ast 2019-09-10 14:07:58 -04:00
README.md create README 2019-09-10 15:13:39 -04:00
semantic-ast.cabal add dependencies to executable part of cabal file 2019-10-10 15:00:19 -04:00
Setup.hs create semantic-ast 2019-09-10 14:07:58 -04:00
test.py add test file 2019-09-30 16:13:42 -04:00

semantic-ast

This package has two goals:

  1. Develop a library that will produce ASTs;
  2. 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