1
1
mirror of https://github.com/github/semantic.git synced 2025-01-02 04:10:29 +03:00

List all the canonical parsers.

This commit is contained in:
Rob Rix 2019-10-02 11:24:37 -04:00
parent 1b46f40e8f
commit 7aee07b3ec
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -40,6 +40,7 @@ module Parsing.Parser
, typescriptParser'
-- * Canonical sets of parsers
, aLaCarteParsers
, allParsers
) where
import Assigning.Assignment
@ -278,3 +279,31 @@ aLaCarteParsers =
, typescriptParser'
, tsxParser'
]
allParsers
:: ( c (Term (Sum Go.Syntax))
, c (Term (Sum Haskell.Syntax))
, c (Term (Sum JSON.Syntax))
, c (Term (Sum Markdown.Syntax))
, c (Term (Sum PHP.Syntax))
, c (Term (Sum Python.Syntax))
, c Py.Term
, c (Term (Sum Ruby.Syntax))
, c (Term (Sum TSX.Syntax))
, c (Term (Sum TypeScript.Syntax))
)
=> PerLanguageModes
-> [(Language, SomeParser c Loc)]
allParsers modes =
[ goParser'
, haskellParser'
, javascriptParser'
, jsonParser'
, jsxParser'
, markdownParser'
, phpParser'
, pythonParser' modes
, rubyParser'
, typescriptParser'
, tsxParser'
]