1
1
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:
Ayman Nadeem 2020-01-29 12:08:48 -05:00
parent 02420957f9
commit 8cd964b30a

View 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