Repository navigation
TreeSitter4D 0.1.0
The first release: tree-sitter's C compiled, so Delphi alone can build with TreeSitter4D, no C++Builder needed. Win64 and Win32.
What's in it
TreeSitter4D-0.1.0-objects.zip: the objectsTreeSitter.Api.paslinks with{$L}. Unzip into the repository's root: Win64 lands inobj\(COFF, bcc64x 7.80), Win32 inobj\win32\(OMF, bcc32c 7.80). Then dcc64 or dcc32 builds as the README says. Nothing to ship with your program.TreeSitter4D-0.1.0-dlls.zip:tree-sitter.dllandtree-sitter-delphi13.dllfor Win64 and Win32. Put the pair beside your executable and defineTS_DLL; other bindings that loadtree-sitter.dlland a grammar DLL can use them too. The Win64 DLLs need only the Universal C Runtime (Windows 10 and later), the Win32 ones only KERNEL32 and USER32.SHA256SUMS.txt.
Each zip carries the licences: tree-sitter v0.25.10 and tree-sitter-delphi13 v1.3.0, both MIT.
Checked
From a folder holding only the repository's delphi\ sources and these zips' contents, dcc64 and dcc32 (Delphi 13) built the walker four ways, and each reported the same over the RTL's source\rtl\common:
win64 objects 99 files, 1537727 nodes, 37 misgrouped <
win64 dlls 99 files, 1537727 nodes, 37 misgrouped <
win32 objects 99 files, 1537727 nodes, 37 misgrouped <
win32 dlls 99 files, 1537727 nodes, 37 misgrouped <
New in the source
- Win32:
build-c.cmd win32 [dll], andTreeSitter.Api.paslinks the Win32 objects. - The DLL path:
TS_DLLinTreeSitter.Api.pas.