GroteTrap-0.1: GroteTrap
Language.GroteTrap.Lexer
Contents
Description
Deriving a lexer from a Language.
Language
Synopsis
data Token Source
The tokenizer produces a list of tokens.
Constructors
Instances
type TokenPos = (Pos, Token)Source
tokenize :: Language a -> Parser [TokenPos]Source
When giver a language, transforms a list of characters into a list of tokens.
isWhite :: Token -> BoolSource
Whether the token is whitespace.