Class: Elisp2any::TreeSitterParser
- Inherits:
-
Object
- Object
- Elisp2any::TreeSitterParser
- Defined in:
- lib/elisp2any/tree_sitter_parser.rb
Overview
:nodoc:
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.parse(source) ⇒ Object
5 6 7 |
# File 'lib/elisp2any/tree_sitter_parser.rb', line 5 def self.parse(source) new(source).parse end |
Instance Method Details
#parse ⇒ Object
9 10 11 |
# File 'lib/elisp2any/tree_sitter_parser.rb', line 9 def parse @node = parser.parse_string(nil, @source).root_node end |