1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 13:51:44 +03:00

📝 the AssignmentParser fields.

This commit is contained in:
Rob Rix 2017-05-19 13:50:50 -04:00
parent 2f46384e74
commit dc90ebf129

View File

@ -28,9 +28,9 @@ data Parser term where
ASTParser :: (Bounded grammar, Enum grammar) => Ptr TS.Language -> Parser (AST grammar) 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. -- | 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)) AssignmentParser :: (Bounded grammar, Enum grammar, Eq grammar, Symbol grammar, Functor (Union fs))
=> Parser (AST grammar) => Parser (AST grammar) -- ^ A parser producing 'AST'.
-> Assignment (Node grammar) (Term (Union fs) Location) -> Assignment (Node grammar) (Term (Union fs) Location) -- ^ An assignment from 'AST' onto 'Term's.
-> Parser (Term (Union (Syntax.Error [Error grammar] ': fs)) Location) -> 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) CParser :: Parser (SyntaxTerm Text DefaultFields)
GoParser :: Parser (SyntaxTerm Text DefaultFields) GoParser :: Parser (SyntaxTerm Text DefaultFields)
MarkdownParser :: Parser (SyntaxTerm Text DefaultFields) MarkdownParser :: Parser (SyntaxTerm Text DefaultFields)