1
1
mirror of https://github.com/github/semantic.git synced 2025-01-07 16:07:28 +03:00

we're not quite ready to part ways with this just yet

This commit is contained in:
Ayman Nadeem 2020-02-13 13:05:13 -05:00
parent 06a16c2c91
commit 08860756b8

View File

@ -0,0 +1,16 @@
{-# LANGUAGE TemplateHaskell #-}
module Language.JSON.Grammar
( tree_sitter_json
, Grammar(..)
) where
import Language.Haskell.TH
import TreeSitter.JSON (tree_sitter_json)
import AST.Grammar.TH
import TreeSitter.Language (addDependentFileRelative)
-- Regenerate template haskell code when these files change:
addDependentFileRelative "../../../vendor/tree-sitter-json/src/parser.c"
-- | Statically-known rules corresponding to symbols in the grammar.
mkStaticallyKnownRuleGrammarData (mkName "Grammar") tree_sitter_json