gll-0.4.0.5: GLL parser with simple combinator interface

Safe HaskellSafe
LanguageHaskell2010

GLL.Combinators.Lexer

Synopsis

Documentation

default_lexer :: SubsumesToken t => String -> [t] Source #

A lexer using the default LexerSettings.

lexer :: SubsumesToken t => LexerSettings -> String -> [t] Source #

A lexer parameterised by LexerSettings.

data LexerSettings Source #

Settings for changing the behaviour of the builtin lexer lexer. Lexers are built using Text.Regex.Applicative.

Constructors

LexerSettings 

Fields

oneOf :: Eq t => [t] -> RE t t Source #

manyOf :: Eq t => [t] -> RE t [t] Source #

someOf :: Eq t => [t] -> RE t [t] Source #

baseToDec :: Int -> String -> Int Source #

Convert numerical representation in a given base (max base = 16, written as string) into decimal representation (returned as Int)