crystal-ast-helper
所属分类:collect
开发工具:Crystal
文件大小:0KB
下载次数:0
上传日期:2019-12-07 05:55:24
上 传 者:
sh-1993
说明: 用于调试解析器和格式化程序的帮助器工具,
(Helper tool to debug parser and formatter,)
文件列表:
.editorconfig (150, 2019-12-06)
LICENSE (1083, 2019-12-06)
shard.lock (113, 2019-12-06)
shard.yml (239, 2019-12-06)
src/ (0, 2019-12-06)
src/ast_helper.cr (8919, 2019-12-06)
# ast_helper
## Installation
```
$ git checkout https://github.com/bcardiff/crystal-ast-helper.git
$ cd crystal-ast-helper
$ shards
$ crystal src/ast_helper.cr
$ open http://localhost:9090
```
If you want to use with crystal head use:
```
$ path/to/crystal-clone/bin/crystal src/ast_helper.cr
```
## Usage
When opening [http://localhost:9090](http://localhost:9090) you will be able to:
* input source
* view the output according to the formatter
* view the tokens returned by the lexer used for parsing and for formatting
* view the tokens consumed so far even if the formatter fails
* view the stack trace of each token
* view the AST of the whole program
![](https://user-images.githubusercontent.com/459923/46692683-4d02af80-cbde-11e8-8af4-443432567a99.gif)
## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [bcardiff](https://github.com/bcardiff) Brian J. Cardiff - creator, maintainer
近期下载者:
相关文件:
收藏者: