| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Scrappy.Grep.DSL.Interpreter
Synopsis
- interpret :: ParserExpr -> Either InterpreterError (ScraperT String)
- interpretWithRefs :: Map String (ScraperT String) -> ParserExpr -> Either InterpreterError (ScraperT String)
- data InterpreterError = UnknownRef String
Documentation
interpret :: ParserExpr -> Either InterpreterError (ScraperT String) Source #
Interpret AST without named references (refs will fail)
interpretWithRefs :: Map String (ScraperT String) -> ParserExpr -> Either InterpreterError (ScraperT String) Source #
Interpret AST with named parser references The Map contains pre-interpreted parsers for each ref name
data InterpreterError Source #
Constructors
| UnknownRef String |
Instances
| Show InterpreterError Source # | |
Defined in Scrappy.Grep.DSL.Interpreter Methods showsPrec :: Int -> InterpreterError -> ShowS # show :: InterpreterError -> String # showList :: [InterpreterError] -> ShowS # | |
| Eq InterpreterError Source # | |
Defined in Scrappy.Grep.DSL.Interpreter Methods (==) :: InterpreterError -> InterpreterError -> Bool # (/=) :: InterpreterError -> InterpreterError -> Bool # | |