1
1
mirror of https://github.com/github/semantic.git synced 2024-11-30 14:47:30 +03:00

Create Language.PHP.Grammar

This commit is contained in:
Ayman Nadeem 2020-02-11 10:36:30 -05:00
parent 30d8445147
commit c152235bd1

View File

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