ddc-base-0.2.1.2: Disciple Core language common utilities.

Safe HaskellNone

DDC.Base.Lexer

Contents

Description

Lexer utilities.

Synopsis

Documentation

data SourcePos Source

A position in the source file.

If there is no file path then we assume that the input has been read from an interactive session and display ''<interactive>'' when pretty printing.

Tokens

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.