All Projects → koic → ruby_ast_visualizer

koic / ruby_ast_visualizer

Licence: other
🌲 Ruby AST Visualizer. Based on Parser.

Programming Languages

ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to ruby ast visualizer

estree-to-babel
convert estree ast to babel
Stars: ✭ 23 (-17.86%)
Mutual labels:  ast
eval-estree-expression
Safely evaluate JavaScript (estree) expressions, sync and async.
Stars: ✭ 22 (-21.43%)
Mutual labels:  ast
dedupimport
Deduplicate named/unnamed imports that have the same import path in Go files
Stars: ✭ 20 (-28.57%)
Mutual labels:  ast
ocean
Programming language that compiles into a x86 ELF executable.
Stars: ✭ 164 (+485.71%)
Mutual labels:  ast
puma
Meta-programming framework for JavaScript based on LayerD concepts
Stars: ✭ 30 (+7.14%)
Mutual labels:  ast
coAST
Universal and language-independent abstract syntax tree
Stars: ✭ 30 (+7.14%)
Mutual labels:  ast
astravel
👟 Tiny and fast ESTree-compliant AST walker and modifier.
Stars: ✭ 38 (+35.71%)
Mutual labels:  ast
kolasu
Kotlin Language Support – AST Library
Stars: ✭ 45 (+60.71%)
Mutual labels:  ast
public
util toolkit for go.golang 通用函数包
Stars: ✭ 135 (+382.14%)
Mutual labels:  ast
Headache
Programming Language that compiles to 8 Bit Brainfuck
Stars: ✭ 59 (+110.71%)
Mutual labels:  ast
rector-cakephp
Rector upgrades rules for CakePHP
Stars: ✭ 18 (-35.71%)
Mutual labels:  ast
redot
Graphviz dot file processor powered by plugins based on @unifiedjs
Stars: ✭ 60 (+114.29%)
Mutual labels:  ast
wx2bd
微信和百度小程序的互转工具,脚本转换率目标为100%,持续更新中~~
Stars: ✭ 21 (-25%)
Mutual labels:  ast
retidy
Extract, unminify, and beautify ("retidy") each file from a webpack/parcel bundle (JavaScript reverse engineering)
Stars: ✭ 27 (-3.57%)
Mutual labels:  ast
bredon
A modern CSS value compiler in JavaScript
Stars: ✭ 39 (+39.29%)
Mutual labels:  ast
omakase
Java-based, plugin-oriented CSS3+ parser
Stars: ✭ 13 (-53.57%)
Mutual labels:  ast
TypeInferencer
Algorithm W and Algorithm M in F#
Stars: ✭ 33 (+17.86%)
Mutual labels:  ast
rector-laravel
Rector upgrades rules for Laravel
Stars: ✭ 75 (+167.86%)
Mutual labels:  ast
C90Compiler-EIE2
C90 to MIPS I Compiler done as a coursework for EE2-15
Stars: ✭ 15 (-46.43%)
Mutual labels:  ast
babel-codemod-example
An example of how to use babel as a codemod
Stars: ✭ 24 (-14.29%)
Mutual labels:  ast

Ruby AST Visualizer Gem Version

Ruby AST Visualizer. Based on Parser.

Install

$ gem install ruby_ast_visualizer

Usage

An example ruby_ast_visualizer command.

$ cat hello.rb
puts 'hello, world'
$ ruby_ast_visualizer hello.rb

(send nil :puts
  (str "hello, world"))

Wrote a.png

or

$ ruby_ast_visualizer -e 'puts "hello, world"'

(send nil :puts
  (str "hello, world"))

Wrote a.png

AST image file is generated.

hello, world

A little more in detail

You can specify output path in the -o option. That value is default a.png.

$ ruby_ast_visualizer -o path/to/file -e 'puts "hello, world"'

(send nil :puts
  (str "hello, world"))

Wrote path/to/file

And you can also specify the -n (--no-image) option if you don't need an image. You can only get the result of S-expression by Parser gem.

$ ruby_ast_visualizer -n -e 'puts "hello, world"'

(send nil :puts
  (str "hello, world"))

Requirements

  • Graphviz

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 new Pull Request

License

Ruby AST Visualizer is released under the GNU General Public License, version 2.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].