mirror of
https://github.com/github/semantic.git
synced 2024-12-21 05:41:54 +03:00
Use the AST synonym in the type of AssignmentParser.
This commit is contained in:
parent
c01e8314ff
commit
a457d8777f
@ -106,7 +106,7 @@ data Parser term where
|
|||||||
UnmarshalParser :: Unmarshal t => Ptr TS.Language -> Parser (t Loc)
|
UnmarshalParser :: Unmarshal t => Ptr TS.Language -> Parser (t Loc)
|
||||||
-- | A parser producing an à la carte term given an 'AST'-producing parser and an 'Assignment' onto 'Term's in some syntax type.
|
-- | A parser producing an à la carte term given an 'AST'-producing parser and an 'Assignment' onto 'Term's in some syntax type.
|
||||||
AssignmentParser :: (Enum grammar, Ix grammar, Show grammar, TS.Symbol grammar, Syntax.Error :< fs, Eq1 ast, Apply Foldable fs, Apply Functor fs, Foldable ast, Functor ast)
|
AssignmentParser :: (Enum grammar, Ix grammar, Show grammar, TS.Symbol grammar, Syntax.Error :< fs, Eq1 ast, Apply Foldable fs, Apply Functor fs, Foldable ast, Functor ast)
|
||||||
=> Parser (Term ast (Node grammar)) -- ^ A parser producing AST.
|
=> Parser (AST ast grammar) -- ^ A parser producing AST.
|
||||||
-> Assignment ast grammar (Term (Sum fs) Loc) -- ^ An assignment from AST onto 'Term's.
|
-> Assignment ast grammar (Term (Sum fs) Loc) -- ^ An assignment from AST onto 'Term's.
|
||||||
-> Parser (Term (Sum fs) Loc) -- ^ A parser producing 'Term's.
|
-> Parser (Term (Sum fs) Loc) -- ^ A parser producing 'Term's.
|
||||||
-- | A parser for 'Markdown' using cmark.
|
-- | A parser for 'Markdown' using cmark.
|
||||||
|
Loading…
Reference in New Issue
Block a user