1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00

📝 the tree-sitter parsers.

This commit is contained in:
Rob Rix 2017-05-19 13:53:28 -04:00
parent db892e66f4
commit 71236acb67

View File

@ -31,10 +31,14 @@ data Parser term where
=> 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.
-- | A tree-sitter parser for 'C'.
CParser :: Parser (SyntaxTerm Text DefaultFields)
-- | A tree-sitter parser for 'Go'.
GoParser :: Parser (SyntaxTerm Text DefaultFields)
MarkdownParser :: Parser (SyntaxTerm Text DefaultFields)
-- | A tree-sitter parser for 'Ruby'.
RubyParser :: Parser (SyntaxTerm Text DefaultFields)
-- | A tree-sitter parser for 'TypeScript'.
TypeScriptParser :: Parser (SyntaxTerm Text DefaultFields)
-- | A parser which will parse any input 'Source' into a top-level 'Term' whose children are leaves consisting of the 'Source's lines.
LineByLineParser :: Parser (SyntaxTerm Text DefaultFields)