From 8cd964b30abd2e415d2f0660da943707098b1b3c Mon Sep 17 00:00:00 2001 From: Ayman Nadeem Date: Wed, 29 Jan 2020 12:08:48 -0500 Subject: [PATCH] Create Grammar.hs --- semantic-go/src/Language/Go/Grammar.hs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 semantic-go/src/Language/Go/Grammar.hs diff --git a/semantic-go/src/Language/Go/Grammar.hs b/semantic-go/src/Language/Go/Grammar.hs new file mode 100644 index 000000000..999aea0fb --- /dev/null +++ b/semantic-go/src/Language/Go/Grammar.hs @@ -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