From 71236acb6769a9879b4d1b30e2ec1c435fee2b38 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Fri, 19 May 2017 13:53:28 -0400 Subject: [PATCH] :memo: the tree-sitter parsers. --- src/Parser.hs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Parser.hs b/src/Parser.hs index 8324f8d88..7185ec520 100644 --- a/src/Parser.hs +++ b/src/Parser.hs @@ -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)