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

Safe HaskellNone
LanguageHaskell98

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) Source 
Show t => Show (Token t) Source 

takeParsecSourcePos :: Token k -> SourcePos Source

Take the parsec style source position from a token.

tokenLine :: Token t -> Int Source

Take the line number of a token.

tokenColumn :: Token t -> Int Source

Take the column number of a token.