crystal-ast-helper
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 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
Contributing
- Fork it (https://github.com/bcardiff/crystal-ast-helper/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- bcardiff Brian J. Cardiff - creator, maintainer
Repository
crystal-ast-helper
Owner
Statistic
- 25
- 2
- 0
- 0
- 1
- almost 5 years ago
- October 9, 2018
License
MIT License
Links
Synced at
Thu, 21 Nov 2024 05:09:35 GMT
Languages