| Copyright | (c) comp 2020 |
|---|---|
| License | MIT |
| Maintainer | onecomputer00@gmail.com |
| Stability | stable |
| Portability | portable |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Hectoparsec.State
Contents
Description
The parser state.
Synopsis
- data State s = State {
- stateInput :: s
- statePos :: !Pos
- stateOffset :: !Int
- initialState :: FilePath -> s -> State s
- makeErrorAt :: State s -> ErrorItem s e l -> ParseError s e l
Parser state
The parser state.
Constructors
| State | |
Fields
| |
makeErrorAt :: State s -> ErrorItem s e l -> ParseError s e l Source #
Creates a parse error from an error item located by some parsing state.