1
1
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:
Rob Rix 2017-05-12 12:24:00 -04:00 committed by GitHub
commit a586762998
8 changed files with 45 additions and 0 deletions

3
.gitmodules vendored
View File

@ -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

View File

@ -0,0 +1,2 @@
import Distribution.Simple
main = defaultMain

View 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

View 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

@ -0,0 +1 @@
Subproject commit 743cabab8c0b243082e497d2b677a7f703dc5c5d

View File

@ -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
View File

@ -0,0 +1 @@
module Language.Python where

View File

@ -0,0 +1 @@
module Language.Python.Syntax where