1
1
mirror of https://github.com/github/semantic.git synced 2025-01-03 13:02:37 +03:00
semantic/src/Parser.hs

10 lines
273 B
Haskell

module Parser where
import Prologue
import Source
-- | A function that takes a source blob and returns an annotated AST.
-- | The return is in the IO monad because some of the parsers are written in C
-- | and aren't pure.
type Parser f a = SourceBlob -> IO (Cofree f a)