Coverage report: /home/ellis/comp/core/ffi/tree-sitter/pkg.lisp
Kind | Covered | All | % |
expression | 2 | 4 | 50.0 |
branch | 0 | 0 | nil |
Key
Not instrumented
Conditionalized out
Executed
Not executed
Both branches taken
One branch taken
Neither branch taken
1
;;; ffi/tree-sitter/pkg.lisp --- Tree-sitter FFI
3
;; Tree-sitter FFI for Lisp
5
;; Tree-sitter consists of the base library, which you can load using
6
;; the LOAD-TREE-SITTER function, and the language parsers.
8
;; The language parser shared libraries should ALWAYS be located in
9
;; /usr/local/lib/ and be prefixed with 'lib' like so:
10
;; '/usr/local/lib/libtree-sitter-json.so'. Static libraries are not
13
;; The language parsers have associated json files which should ALWAYS
14
;; be stored in subdirectories of /usr/local/share/tree-sitter/ like
15
;; so: '/usr/local/share/tree-sitter/json/grammar.json'.
18
(defpackage :tree-sitter
19
(:use :cl :std :sb-alien :std/alien)
22
:load-tree-sitter-alien
23
:tree-sitter-language-files
26
:*tree-sitter-language-directory*
36
:ts-lookahead-iterator
46
:ts-parser-set-language
49
:ts-parser-parse-string
50
:ts-parser-print-dot-graphs
55
:ts-tree-print-dot-graph
60
:ts-node-grammar-symbol
69
:ts-tree-cursor-new-pointer
70
:ts-tree-cursor-delete
73
:ts-language-symbol-name
74
:ts-language-symbol-count
75
:ts-language-field-count
76
:ts-tree-cursor-current-field-name
77
:ts-tree-cursor-goto-next-sibling
78
:ts-tree-cursor-goto-parent
79
:ts-tree-cursor-goto-first-child
82
:ts-tree-root-node-pointer
83
:ts-node-is-named-pointer
84
:ts-tree-cursor-current-node-pointer
85
:ts-node-start-point-pointer
86
:ts-node-end-point-pointer
91
:parse-string-with-language
96
:convert-foreign-tree-to-list
97
:ts-language-next-state
98
:ts-language-field-id-for-name
99
:ts-language-field-name-for-id
100
:ts-language-symbol-type
102
:ts-query-cursor-delete
103
:with-ts-query-cursor
104
:check-ts-query-error))
106
(in-package :tree-sitter)
108
(define-alien-loader tree-sitter)
109
(define-alien-loader tree-sitter-alien)