language-lua-0.1.2: Lua parser and pretty-printer
Language.Lua.Parser
Synopsis
parseText :: Parsec [LTok] () a -> String -> Either ParseError aSource
Runs Lua lexer before parsing.
parseFile :: FilePath -> IO (Either ParseError Block)Source
Parse a Lua file. You can use parseText chunk to parse a file from a string.
parseText chunk
stat :: Parser StatSource
Statement parser.
exp :: Parser ExpSource
Expression parser.
chunk :: Parser BlockSource
Lua file parser.