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

Safe HaskellNone
LanguageHaskell2010

Language.Lua.Annotated.Lexer

Synopsis

Documentation

llex Source #

Arguments

:: Text

chunk

-> [LexToken] 

Lua lexer with default =string name.

llexNamed Source #

Arguments

:: String

name

-> Text

chunk

-> [LexToken] 

Lua lexer with explicit name.

llexNamedWithWhiteSpace Source #

Arguments

:: String

name

-> Text

chunk

-> [LexToken] 

Lua lexer with explicit name, preseves white space and comments.

llexFile :: FilePath -> IO [LexToken] Source #

Run Lua lexer on a file.

data LexToken Source #

Lua token with position information.

Constructors

LexToken 

data SourcePos Source #

The type of locations in a source file

dropWhiteSpace :: [LexToken] -> [LexToken] Source #

This function drops whitespace and comments from a list of lexemes in order to make it suitable for parsing.