License | BSD-3-Clause |
---|---|
Maintainer | Jamie Willis |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
This module contains the implementations of updates on positions: these depend on the number of
bits in a word, or if the full-width-positions
flag was set on the parsley-core
library.
Since: 1.8.0.0
Documentation
updatePos :: Code Pos -> Code Char -> Code Pos Source #
Given a position and a character, returns the representation of the updated position.
Since: 1.8.0.0
The initial position used by the parser. This is some representation of (1, 1).
Since: 1.8.0.0
updatePos# :: Pos -> Char -> Pos Source #
Updates a given position assuming the given character was read. Tab characters are aligned to the nearest 4th space boundary.
Since: 1.8.0.0