1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

we just say TypeScript

This commit is contained in:
joshvera 2017-03-15 17:28:48 -04:00
parent baf3fb3da2
commit 132208d2c9
4 changed files with 20 additions and 2 deletions

View File

@ -1,4 +1,4 @@
module Text.Parser.TreeSitter.Typescript where
module Text.Parser.TreeSitter.TypeScript where
import Text.Parser.TreeSitter
import Foreign.Ptr

View File

@ -13,7 +13,7 @@ cabal-version: >=1.10
library
hs-source-dirs: src
exposed-modules: Text.Parser.TreeSitter.Typescript
exposed-modules: Text.Parser.TreeSitter.TypeScript
build-depends: base >= 4.7 && < 5
, haskell-tree-sitter
default-language: Haskell2010

View File

@ -1,4 +1,5 @@
name: semantic-diff
version: 0.2.0
synopsis: Initial project template from stack
description: Please see README.md
@ -33,6 +34,7 @@ library
, Language
, Language.C
, Language.JavaScript
, Language.TypeScript
, Language.Markdown
, Language.Go
, Language.Ruby

View File

@ -0,0 +1,16 @@
{-# LANGUAGE DataKinds #-}
module Language.JavaScript where
import Info
import Prologue
import Source
import Language
import qualified Syntax as S
import Term
termAssignment
:: Source -- ^ The source of the term.
-> Category -- ^ The category for the term.
-> [ SyntaxTerm Text '[Range, Category, SourceSpan] ] -- ^ The child nodes of the term.
-> Maybe (S.Syntax Text (SyntaxTerm Text '[Range, Category, SourceSpan])) -- ^ The resulting term, in Maybe.
termAssignment _ category children