1
1
mirror of https://github.com/github/semantic.git synced 2025-01-04 21:47:07 +03:00

Define a Parser GADT.

This commit is contained in:
Rob Rix 2017-05-19 09:51:01 -04:00
parent b9e947b605
commit a5ab3637fb

View File

@ -1,5 +1,14 @@
{-# LANGUAGE GADTs, ScopedTypeVariables #-}
module Parser where
import Info hiding (Go)
import Language
import Prologue
import Source
import Term
data Parser term where
CParser :: Parser (SyntaxTerm Text DefaultFields)
GoParser :: Parser (SyntaxTerm Text DefaultFields)
RubyParser :: Parser (SyntaxTerm Text DefaultFields)
TypeScriptParser :: Parser (SyntaxTerm Text DefaultFields)