}
}
+\f
/*** Parsing functions */
static void
return beg;
}
+\f
/*** Functions for parser and node object */
/* Wrap the parser in a Lisp_Object to be used in the Lisp
return treesit_query;
}
+\f
+/* Lisp definitions. */
+
DEFUN ("treesit-parser-p",
Ftreesit_parser_p, Streesit_parser_p, 1, 1, 0,
doc: /* Return t if OBJECT is a tree-sitter parser. */)
(!NILP (Fbuffer_live_p (XTS_PARSER (parser)->buffer))));
}
+\f
/*** Parser API */
DEFUN ("treesit-parser-root-node",
return Qnil;
}
+\f
/*** Node API */
/* Check that OBJ is a positive integer and signal an error if
return same_node ? Qt : Qnil;
}
+\f
/*** Query functions */
DEFUN ("treesit-pattern-expand",
return Fnreverse (result);
}
+\f
/*** Navigation */
static inline void
#endif
}
-
+\f
/*** Initialization */
/* Initialize the tree-sitter routines. */