Use tree-sitter-ruby for Ruby parsing
mastertree-sitter-ruby provides a Ruby grammar for the tree-sitter incremental parsing library. It allows developers to generate concrete syntax trees (CSTs) for Ruby code, which can be used for syntax highlighting, code analysis, and refactoring tools.
For detailed information on the structure of the generated trees, refer to the AST Format of the Whitequark parser.