1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00

📝 Parser.

This commit is contained in:
Rob Rix 2017-05-19 13:45:26 -04:00
parent 933512afcf
commit e9c27f1337

View File

@ -22,6 +22,7 @@ import Text.Parser.TreeSitter.Ruby
import Text.Parser.TreeSitter.TypeScript
import TreeSitter
-- | A parser from 'Source' onto some term type.
data Parser term where
ASTParser :: (Bounded grammar, Enum grammar) => Ptr TS.Language -> Parser (AST grammar)
AssignmentParser :: (Bounded grammar, Enum grammar, Eq grammar, Symbol grammar, Functor (Union fs))