mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
Add json project
This commit is contained in:
parent
55cfa89ddf
commit
7135cf0727
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -34,3 +34,6 @@
|
||||
[submodule "languages/python/vendor/tree-sitter-python"]
|
||||
path = languages/python/vendor/tree-sitter-python
|
||||
url = https://github.com/tree-sitter/tree-sitter-python.git
|
||||
[submodule "languages/json/vendor/tree-sitter-json"]
|
||||
path = languages/json/vendor/tree-sitter-json
|
||||
url = https://github.com/tree-sitter/tree-sitter-json
|
||||
|
2
languages/json/Setup.hs
Normal file
2
languages/json/Setup.hs
Normal file
@ -0,0 +1,2 @@
|
||||
import Distribution.Simple
|
||||
main = defaultMain
|
28
languages/json/json.cabal
Normal file
28
languages/json/json.cabal
Normal file
@ -0,0 +1,28 @@
|
||||
name: json
|
||||
version: 0.1.0
|
||||
synopsis: tree-sitter json language bindings
|
||||
description: Please see README.md
|
||||
homepage: https://github.com/github/semantic-diff#readme
|
||||
author: semantic-code
|
||||
maintainer: vera@github.com
|
||||
copyright: 2017 GitHub
|
||||
category: Web
|
||||
build-type: Simple
|
||||
-- extra-source-files:
|
||||
cabal-version: >=1.10
|
||||
|
||||
library
|
||||
hs-source-dirs: src
|
||||
exposed-modules: Text.Parser.TreeSitter.JSON
|
||||
build-depends: base >= 4.7 && < 5
|
||||
, haskell-tree-sitter
|
||||
default-language: Haskell2010
|
||||
default-extensions: FlexibleInstances, OverloadedStrings, NoImplicitPrelude, RecordWildCards
|
||||
c-sources: vendor/tree-sitter-json/src/parser.c
|
||||
, vendor/tree-sitter-json/src/scanner.c
|
||||
cc-options: -std=c99 -Os
|
||||
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location: https://github.com/github/semantic-diff
|
6
languages/json/src/Text/Parser/TreeSitter/JSON.hs
Normal file
6
languages/json/src/Text/Parser/TreeSitter/JSON.hs
Normal file
@ -0,0 +1,6 @@
|
||||
module Text.Parser.TreeSitter.JSON where
|
||||
|
||||
import Foreign.Ptr
|
||||
import Text.Parser.TreeSitter
|
||||
|
||||
foreign import ccall unsafe "vendor/tree-sitter-json/src/parser.c tree_sitter_json" tree_sitter_json :: Ptr Language
|
1
languages/json/vendor/tree-sitter-json
vendored
Submodule
1
languages/json/vendor/tree-sitter-json
vendored
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 5c21eb6446ca3e0a49fe710fb948d8efb8a5b6da
|
Loading…
Reference in New Issue
Block a user