trying to use inside of a node project, the binding when calling setLanguage from node tree-sitter, was throwing an error Type error: Invalid language object. This was due to the use of nan in the old binding from tree-sitter, but now it uses node-addon-api, so I've updated it. Also, for wasm build, the scanner.c uses strcpy, but it is not available symbol after compilation with new version of tree-sitter.
thanks for working on this.... once this lands, we can integrate sql parser to ast-grep to enable automated code transformation of sql for a variety of use cases. so looking forward to it.
Summary
trying to use inside of a node project, the binding when calling
setLanguage
from node tree-sitter, was throwing an errorType error: Invalid language object
. This was due to the use ofnan
in the old binding from tree-sitter, but now it uses node-addon-api, so I've updated it. Also, for wasm build, the scanner.c uses strcpy, but it is not available symbol after compilation with new version of tree-sitter.