Ruby syntaxtree

From wikinotes
Revision as of 00:15, 1 February 2024 by Will (talk | contribs)

a very fast ruby ast

node-types all defined within node.rb

Documentation

github https://github.com/ruby-syntax-tree/syntax_tree


stree match /some/file.rb            # generate matcher code
stree search 'VarRef' /some/file.rb  # search for code

stree search 'VarRef[value: Const[value: "MyModule"]]' **/*.rb

stree search 'ConstPathRef[VarRef[value: Const[value: "MyModule"]],Const[value: "MyClass"]]' **/*.rb