Class: Elisp2any::TreeSitterParser

Inherits:
Object
  • Object
show all
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

#parseObject



9
10
11
# File 'lib/elisp2any/tree_sitter_parser.rb', line 9

def parse
  @node = parser.parse_string(nil, @source).root_node
end