mirror of
https://github.com/github/semantic.git
synced 2024-12-25 07:55:12 +03:00
create README
This commit is contained in:
parent
01b1e33f80
commit
c389cb8add
28
semantic-ast/README.md
Normal file
28
semantic-ast/README.md
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
# 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
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user