ddc-base-0.4.1.3: Disciplined Disciple Compiler common utilities.

Safe HaskellNone

DDC.Data.Token

Synopsis

Documentation

data Token t Source

Wrapper for primitive token type that gives it a source position.

Constructors

Token 

Instances

Eq t => Eq (Token t) 
Show t => Show (Token t) 

takeParsecSourcePos :: Token k -> SourcePosSource

Take the parsec style source position from a token.

tokenLine :: Token t -> IntSource

Take the line number of a token.

tokenColumn :: Token t -> IntSource

Take the column number of a token.