AlexTools

Lexer Basics

initialInput

data Input

inputFile

data Lexeme t

data SourcePos

startPos

beforeStartPos

data SourceRange

prettySourcePos

prettySourceRange

prettySourcePosLong

prettySourceRangeLong

class HasRange t

(<->)

moveSourcePos

Writing Lexer Actions

data Action s a

Lexemes

lexeme

matchLength

matchRange

matchText

Manipulating the lexer's state

getLexerState

setLexerState

Access to the lexer's input

startInput

endInput

Interface with Alex

type AlexInput

alexInputPrevChar

makeAlexGetByte

makeLexer

data LexerConfig s t

simpleLexer

data Word8