mirror of
https://github.com/github/semantic.git
synced 2024-12-01 00:33:59 +03:00
Merge branch 'master' into generalize-table-of-contents-over-the-syntax-functor
This commit is contained in:
commit
a586762998
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -37,3 +37,6 @@
|
||||
[submodule "languages/typescript/vendor/tree-sitter-typescript"]
|
||||
path = languages/typescript/vendor/tree-sitter-typescript
|
||||
url = https://github.com/tree-sitter/tree-sitter-typescript/
|
||||
[submodule "languages/python/vendor/tree-sitter-python"]
|
||||
path = languages/python/vendor/tree-sitter-python
|
||||
url = https://github.com/tree-sitter/tree-sitter-python.git
|
||||
|
2
languages/python/Setup.hs
Normal file
2
languages/python/Setup.hs
Normal file
@ -0,0 +1,2 @@
|
||||
import Distribution.Simple
|
||||
main = defaultMain
|
26
languages/python/python.cabal
Normal file
26
languages/python/python.cabal
Normal file
@ -0,0 +1,26 @@
|
||||
name: python
|
||||
version: 0.1.0
|
||||
synopsis: tree-sitter python language bindings
|
||||
homepage: https://github.com/github/semantic-diff#readme
|
||||
description: Please see README.md
|
||||
author: semantic-code
|
||||
maintainer: tclem@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.Python
|
||||
build-depends: base >= 4.7 && < 5
|
||||
, haskell-tree-sitter
|
||||
default-language: Haskell2010
|
||||
c-sources: vendor/tree-sitter-python/src/parser.c
|
||||
, vendor/tree-sitter-python/src/scanner.cc
|
||||
extra-libraries: stdc++
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location: https://github.com/github/semantic-diff
|
8
languages/python/src/Text/Parser/TreeSitter/Python.hs
Normal file
8
languages/python/src/Text/Parser/TreeSitter/Python.hs
Normal file
@ -0,0 +1,8 @@
|
||||
module Text.Parser.TreeSitter.Python
|
||||
( tree_sitter_python
|
||||
) where
|
||||
|
||||
import Foreign.Ptr
|
||||
import Text.Parser.TreeSitter
|
||||
|
||||
foreign import ccall unsafe "vendor/tree-sitter-python/src/parser.c tree_sitter_python" tree_sitter_python :: Ptr Language
|
1
languages/python/vendor/tree-sitter-python
vendored
Submodule
1
languages/python/vendor/tree-sitter-python
vendored
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 743cabab8c0b243082e497d2b677a7f703dc5c5d
|
@ -51,6 +51,8 @@ library
|
||||
, Language.Ruby.Syntax
|
||||
, Language.TypeScript
|
||||
, Language.TypeScript.Syntax
|
||||
, Language.Python
|
||||
, Language.Python.Syntax
|
||||
, Parser
|
||||
, Patch
|
||||
, Paths_semantic_diff
|
||||
@ -123,6 +125,7 @@ library
|
||||
, ruby
|
||||
, javascript
|
||||
, typescript
|
||||
, python
|
||||
, network
|
||||
, clock
|
||||
, yaml
|
||||
|
1
src/Language/Python.hs
Normal file
1
src/Language/Python.hs
Normal file
@ -0,0 +1 @@
|
||||
module Language.Python where
|
1
src/Language/Python/Syntax.hs
Normal file
1
src/Language/Python/Syntax.hs
Normal file
@ -0,0 +1 @@
|
||||
module Language.Python.Syntax where
|
Loading…
Reference in New Issue
Block a user