PageRenderTime 58ms CodeModel.GetById 53ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/src/Gcc.hs

http://github.com/Eelis/geordi
Haskell | 13 lines | 8 code | 4 blank | 1 comment | 0 complexity | 79504cb7de724366edb8946dbdb55390 MD5 | raw file
 1{-# LANGUAGE UnicodeSyntax #-}
 2
 3module Gcc where
 4
 5import Data.Maybe (isJust)
 6import Text.Regex (mkRegex, matchRegex)
 7
 8data Stage = Preprocess | Analyze | Compile | Assemble | Link | Run
 9  deriving (Show, Eq, Enum, Ord)
10
11isMainMissingDiagnostic :: String  Bool
12isMainMissingDiagnostic =
13  isJust . matchRegex (mkRegex "undefined reference to [^[:alnum:]]+main[^[:alnum:]]+$")