language-lua-0.8.1: Lua parser and pretty-printer

Safe HaskellNone
LanguageHaskell2010

Language.Lua.Annotated.Lexer

Synopsis

Documentation

llex :: String -> Either (String, AlexPosn) [LTok] Source

Lua lexer.

llexFile :: FilePath -> IO (Either (String, AlexPosn) [LTok]) Source

Run Lua lexer on a file.

type LTok = (LToken, AlexPosn) Source

Lua token with position information.

data AlexPosn Source

Constructors

AlexPn !Int !Int !Int