mirror of
https://github.com/github/semantic.git
synced 2024-12-30 10:27:45 +03:00
📝 ASTParser.
This commit is contained in:
parent
e9c27f1337
commit
1fc881f1b8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user