mirror of
https://github.com/github/semantic.git
synced 2024-11-24 00:42:33 +03:00
Remove tree-sitter-parsers; replace with language specific packages
- This allows us to migrate to haskell-tree-sitter, which provides an open source git repository that contains no language bindings, but provides the ffi for working with tree sitter. - Additionally now semantic-diff uses language specific packages found with the languages dir. Each language package contains a vendored version of its associated tree-sitter project (i.e. language/ruby contains tree-sitter-ruby). The implication is that generating a language’s updated parser.c does not require a re-compilation of all languages parser.c files.
This commit is contained in:
parent
09dfd79723
commit
eda990ad7b
@ -93,9 +93,13 @@ library
|
||||
, text >= 1.2.1.3
|
||||
, text-icu
|
||||
, these
|
||||
, tree-sitter-parsers
|
||||
, haskell-tree-sitter
|
||||
, vector
|
||||
, wl-pprint-text
|
||||
, c
|
||||
, go
|
||||
, ruby
|
||||
, javascript
|
||||
default-language: Haskell2010
|
||||
default-extensions: DeriveFunctor, DeriveFoldable, DeriveTraversable, DeriveGeneric, FlexibleContexts, FlexibleInstances, OverloadedStrings, NoImplicitPrelude, RecordWildCards, LambdaCase, StrictData
|
||||
ghc-options: -Wall -fno-warn-name-shadowing -O2 -fprof-auto -j
|
||||
|
@ -21,10 +21,13 @@ import Syntax
|
||||
import System.FilePath
|
||||
import Term
|
||||
import TreeSitter
|
||||
import Text.Parser.TreeSitter.Language
|
||||
import Renderer
|
||||
import Renderer.JSON()
|
||||
import Renderer.SExpression
|
||||
import Text.Parser.TreeSitter.C
|
||||
import Text.Parser.TreeSitter.Go
|
||||
import Text.Parser.TreeSitter.JavaScript
|
||||
import Text.Parser.TreeSitter.Ruby
|
||||
|
||||
data ParseJSON = ParseJSON
|
||||
{ category :: Text
|
||||
|
Loading…
Reference in New Issue
Block a user