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