Portability | non-portable |
---|---|
Stability | experimental |
Maintainer | virukav@gmail.com |
Sed commands parser. See The Open Group Base Specifications Issue 7 for parsing requirements. The current version of the Haskell Sed doesn't supports the back-references in the RE.
- data ParserState = ParserState {}
- type SedParser = GenParser Char ParserState
- type Stream = String
- parseSed :: SedParser a -> Stream -> Either ParseError a
- parseRE :: String -> SedParser Pattern
- address :: SedParser Address
- sedCmds :: SedParser [SedCmd]
- sedCmd :: SedParser SedCmd
- sedFun :: SedParser SedFun
- bareFun :: Char -> SedFun -> SedParser SedFun
- textFun :: Char -> (Text -> SedFun) -> SedParser SedFun
- fileFun :: Char -> (FilePath -> SedFun) -> SedParser SedFun
- argFun :: Char -> (ByteString -> SedFun) -> SedParser SedFun
- gotoFun :: Char -> (Maybe Label -> SedFun) -> SedParser SedFun
Documentation
data ParserState Source
If an RE is empty last RE used in the last command applied
type SedParser = GenParser Char ParserStateSource