Safe Haskell | None |
---|
- data Token t = Token {
- tokenTok :: t
- tokenSourcePos :: SourcePos
- takeParsecSourcePos :: Token k -> SourcePos
- tokenLine :: Token t -> Int
- tokenColumn :: Token t -> Int
Documentation
Wrapper for primitive token type that gives it a source position.
Token | |
|
takeParsecSourcePos :: Token k -> SourcePosSource
Take the parsec style source position from a token.
tokenColumn :: Token t -> IntSource
Take the column number of a token.