mirror of
https://github.com/github/semantic.git
synced 2024-11-23 08:27:56 +03:00
Create Grammar.hs
This commit is contained in:
parent
02420957f9
commit
8cd964b30a
15
semantic-go/src/Language/Go/Grammar.hs
Normal file
15
semantic-go/src/Language/Go/Grammar.hs
Normal file
@ -0,0 +1,15 @@
|
||||
{-# LANGUAGE TemplateHaskell #-}
|
||||
module Language.Go.Grammar
|
||||
( tree_sitter_go
|
||||
, Grammar(..)
|
||||
) where
|
||||
|
||||
import Language.Haskell.TH
|
||||
import TreeSitter.Go.Internal
|
||||
import TreeSitter.Language
|
||||
|
||||
-- Regenerate template haskell code when these files change:
|
||||
addDependentFileRelative "../../../vendor/tree-sitter-go/src/parser.c"
|
||||
|
||||
-- | Statically-known rules corresponding to symbols in the grammar.
|
||||
mkSymbolDatatype (mkName "Grammar") tree_sitter_go
|
Loading…
Reference in New Issue
Block a user