mirror of
https://github.com/github/semantic.git
synced 2024-11-27 12:57:49 +03:00
Create Language.PHP.Grammar
This commit is contained in:
parent
30d8445147
commit
c152235bd1
16
semantic-php/src/Language/PHP/Grammar.hs
Normal file
16
semantic-php/src/Language/PHP/Grammar.hs
Normal 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
|
Loading…
Reference in New Issue
Block a user