-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
87 changed files
with
1,303 additions
and
1,054 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd"> | ||
<metadata minClientVersion="3.3"> | ||
<id>libtree-sitter-json</id> | ||
<version>0.3.9+7</version> | ||
<authors>Summpot</authors> | ||
<owners>Summpot</owners> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<license type="expression">MIT</license> | ||
<projectUrl>https://github.com/Summpot/tree-sitter</projectUrl> | ||
<description>Multi-platform native library for libtree-sitter-json.</description> | ||
<copyright>Copyright (c) 2023 Summpot</copyright> | ||
<repository type="git" url="https://github.com/tree-sitter/tree-sitter" branch="master" /> | ||
<dependencies> | ||
<group targetFramework=".NETStandard2.0"> | ||
<dependency id="libtree-sitter-json.runtime.linux-arm64" version="0.3.9+7" /> | ||
<dependency id="libtree-sitter-json.runtime.linux-x64" version="0.3.9+7" /> | ||
<dependency id="libtree-sitter-json.runtime.osx-arm64" version="0.3.9+7" /> | ||
<dependency id="libtree-sitter-json.runtime.osx-x64" version="0.3.9+7" /> | ||
<dependency id="libtree-sitter-json.runtime.win-x64" version="0.3.9+7" /> | ||
<dependency id="libtree-sitter-json.runtime.win-x86" version="0.3.9+7" /> | ||
<dependency id="libtree-sitter-json.runtime.win-arm64" version="0.3.9+7" /> | ||
</group> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src="LICENSE.TXT" target="LICENSE.TXT" /> | ||
</files> | ||
</package> |
19 changes: 19 additions & 0 deletions
19
native/nuspecs/libtree-sitter-json.runtime.linux-arm64.nuspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd"> | ||
<metadata minClientVersion="3.3"> | ||
<id>libtree-sitter-json.runtime.linux-arm64</id> | ||
<version>0.3.9+7</version> | ||
<authors>Summpot</authors> | ||
<owners>Summpot</owners> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<license type="expression">MIT</license> | ||
<projectUrl>https://github.com/Summpot/tree-sitter</projectUrl> | ||
<description>linux arm64 native library for libtree-sitter-json.</description> | ||
<copyright>Copyright (c) 2023 Summpot</copyright> | ||
<repository type="git" url="https://github.com/Summpot/tree-sitter" branch="master" /> | ||
</metadata> | ||
<files> | ||
<file src="LICENSE.TXT" target="LICENSE.TXT" /> | ||
<file src="linux-arm64/libtree-sitter-json.so" target="runtimes\linux-arm64\native\libtree-sitter-json.so" /> | ||
</files> | ||
</package> |
19 changes: 19 additions & 0 deletions
19
native/nuspecs/libtree-sitter-json.runtime.linux-x64.nuspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd"> | ||
<metadata minClientVersion="3.3"> | ||
<id>libtree-sitter-json.runtime.linux-x64</id> | ||
<version>0.3.9+7</version> | ||
<authors>Summpot</authors> | ||
<owners>Summpot</owners> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<license type="expression">MIT</license> | ||
<projectUrl>https://github.com/Summpot/tree-sitter</projectUrl> | ||
<description>linux arm64 native library for libtree-sitter-json.</description> | ||
<copyright>Copyright (c) 2023 Summpot</copyright> | ||
<repository type="git" url="https://github.com/Summpot/tree-sitter" branch="master" /> | ||
</metadata> | ||
<files> | ||
<file src="LICENSE.TXT" target="LICENSE.TXT" /> | ||
<file src="linux-x64/libtree-sitter-json.so" target="runtimes\linux-x64\native\libtree-sitter-json.so" /> | ||
</files> | ||
</package> |
19 changes: 19 additions & 0 deletions
19
native/nuspecs/libtree-sitter-json.runtime.osx-arm64.nuspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd"> | ||
<metadata minClientVersion="3.3"> | ||
<id>libtree-sitter-json.runtime.osx-arm64</id> | ||
<version>0.3.9+7</version> | ||
<authors>Summpot</authors> | ||
<owners>Summpot</owners> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<license type="expression">MIT</license> | ||
<projectUrl>https://github.com/Summpot/tree-sitter</projectUrl> | ||
<description>linux arm64 native library for libtree-sitter-json.</description> | ||
<copyright>Copyright (c) 2023 Summpot</copyright> | ||
<repository type="git" url="https://github.com/Summpot/tree-sitter" branch="master" /> | ||
</metadata> | ||
<files> | ||
<file src="LICENSE.TXT" target="LICENSE.TXT" /> | ||
<file src="osx-arm64/libtree-sitter-json.dylib" target="runtimes\osx-arm64\native\libtree-sitter-json.dylib" /> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd"> | ||
<metadata minClientVersion="3.3"> | ||
<id>libtree-sitter-json.runtime.osx-x64</id> | ||
<version>0.3.9+7</version> | ||
<authors>Summpot</authors> | ||
<owners>Summpot</owners> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<license type="expression">MIT</license> | ||
<projectUrl>https://github.com/Summpot/tree-sitter</projectUrl> | ||
<description>linux arm64 native library for libtree-sitter-json.</description> | ||
<copyright>Copyright (c) 2023 Summpot</copyright> | ||
<repository type="git" url="https://github.com/Summpot/tree-sitter" branch="master" /> | ||
</metadata> | ||
<files> | ||
<file src="LICENSE.TXT" target="LICENSE.TXT" /> | ||
<file src="osx-x64/libtree-sitter-json.dylib" target="runtimes\osx-x64\native\libtree-sitter-json.dylib" /> | ||
</files> | ||
</package> |
19 changes: 19 additions & 0 deletions
19
native/nuspecs/libtree-sitter-json.runtime.win-arm64.nuspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd"> | ||
<metadata minClientVersion="3.3"> | ||
<id>libtree-sitter-json.runtime.win-arm64</id> | ||
<version>0.3.9+7</version> | ||
<authors>Summpot</authors> | ||
<owners>Summpot</owners> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<license type="expression">MIT</license> | ||
<projectUrl>https://github.com/Summpot/tree-sitter</projectUrl> | ||
<description>linux arm64 native library for libtree-sitter-json.</description> | ||
<copyright>Copyright (c) 2023 Summpot</copyright> | ||
<repository type="git" url="https://github.com/Summpot/tree-sitter" branch="master" /> | ||
</metadata> | ||
<files> | ||
<file src="LICENSE.TXT" target="LICENSE.TXT" /> | ||
<file src="win-arm64/tree-sitter-json.dll" target="runtimes\win-arm64\native\libtree-sitter-json.dll" /> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd"> | ||
<metadata minClientVersion="3.3"> | ||
<id>libtree-sitter-json.runtime.win-x64</id> | ||
<version>0.3.9+7</version> | ||
<authors>Summpot</authors> | ||
<owners>Summpot</owners> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<license type="expression">MIT</license> | ||
<projectUrl>https://github.com/Summpot/tree-sitter</projectUrl> | ||
<description>linux arm64 native library for libtree-sitter-json.</description> | ||
<copyright>Copyright (c) 2023 Summpot</copyright> | ||
<repository type="git" url="https://github.com/Summpot/tree-sitter" branch="master" /> | ||
</metadata> | ||
<files> | ||
<file src="LICENSE.TXT" target="LICENSE.TXT" /> | ||
<file src="win-x64/tree-sitter-json.dll" target="runtimes\win-x64\native\libtree-sitter-json.dll" /> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd"> | ||
<metadata minClientVersion="3.3"> | ||
<id>libtree-sitter-json.runtime.win-x86</id> | ||
<version>0.3.9+7</version> | ||
<authors>Summpot</authors> | ||
<owners>Summpot</owners> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<license type="expression">MIT</license> | ||
<projectUrl>https://github.com/Summpot/tree-sitter</projectUrl> | ||
<description>linux arm64 native library for libtree-sitter-json.</description> | ||
<copyright>Copyright (c) 2023 Summpot</copyright> | ||
<repository type="git" url="https://github.com/Summpot/tree-sitter" branch="master" /> | ||
</metadata> | ||
<files> | ||
<file src="LICENSE.TXT" target="LICENSE.TXT" /> | ||
<file src="win-x86/tree-sitter-json.dll" target="runtimes\win-x86\native\libtree-sitter-json.dll" /> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
project('tree-sitter-json', 'c') | ||
|
||
incdir = include_directories('src/src') | ||
|
||
library('tree-sitter-json', 'src/src/parser.c', include_directories : incdir) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Runtime.InteropServices; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using TreeSitterSharp.Native; | ||
|
||
namespace TreeSitterSharp.C; | ||
public class CLanguageProvider : ILanguageProvider | ||
{ | ||
[DllImport("libtree-sitter-c", EntryPoint = "tree_sitter_c", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] | ||
private static extern unsafe TsLanguage* tree_sitter_c(); | ||
|
||
public static unsafe Language GetLanguage() | ||
{ | ||
return Language.FromNative(tree_sitter_c()); | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.