toml-parser-0.1.0.0: Parser for the TOML configuration language

Copyright(c) Eric Mertens 2017
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellTrustworthy
LanguageHaskell2010

TOML.Lexer

Description

Lexer for TOML generated by Alex. Errors are reported in the resulting token list with Error. As much as possible this module only contains generated code. The rest of the implementation is in LexerUtils.

Synopsis

Documentation

scanTokens Source #

Arguments

:: Text

Source text

-> [Located Token]

Tokens with position

Produce a token stream from an input file. The token stream will always be terminated by an ErrorToken or EofToken.