1
1
mirror of https://github.com/github/semantic.git synced 2024-12-30 10:27:45 +03:00

📝 ASTParser.

This commit is contained in:
Rob Rix 2017-05-19 13:47:53 -04:00
parent e9c27f1337
commit 1fc881f1b8

View File

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