mirror of
https://github.com/github/semantic.git
synced 2024-12-20 21:31:48 +03:00
📝 the AssignmentParser fields.
This commit is contained in:
parent
2f46384e74
commit
dc90ebf129
@ -28,9 +28,9 @@ data Parser term where
|
||||
ASTParser :: (Bounded grammar, Enum grammar) => Ptr TS.Language -> Parser (AST grammar)
|
||||
-- | A parser producing an à la carte term given an 'AST'-producing parser and an 'Assignment' onto 'Term's in some syntax type. Assignment errors will result in a top-level 'Syntax.Error' node.
|
||||
AssignmentParser :: (Bounded grammar, Enum grammar, Eq grammar, Symbol grammar, Functor (Union fs))
|
||||
=> Parser (AST grammar)
|
||||
-> Assignment (Node grammar) (Term (Union fs) Location)
|
||||
-> Parser (Term (Union (Syntax.Error [Error grammar] ': fs)) Location)
|
||||
=> Parser (AST grammar) -- ^ A parser producing 'AST'.
|
||||
-> Assignment (Node grammar) (Term (Union fs) Location) -- ^ An assignment from 'AST' onto 'Term's.
|
||||
-> Parser (Term (Union (Syntax.Error [Error grammar] ': fs)) Location) -- ^ A parser of 'Term's, weakened to allow for 'Syntax.Error' cases.
|
||||
CParser :: Parser (SyntaxTerm Text DefaultFields)
|
||||
GoParser :: Parser (SyntaxTerm Text DefaultFields)
|
||||
MarkdownParser :: Parser (SyntaxTerm Text DefaultFields)
|
||||
|
Loading…
Reference in New Issue
Block a user