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

Safe HaskellNone




parseText :: Parsec [LTok] () a -> String -> Either ParseError aSource

Runs Lua lexer before parsing. Use parseText stat to parse statements, and parseText exp to parse expressions.

parseFile :: FilePath -> IO (Either ParseError Block)Source

Parse a Lua file. You can use parseText chunk to parse a file from a string.

stat :: Parser StatSource

Statement parser.

exp :: Parser ExpSource

Expression parser.

chunk :: Parser BlockSource

Lua file parser.