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

Safe HaskellNone




parseText :: Parser 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 SourcePos))Source

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

stat :: Parser (Stat SourcePos)Source

Statement parser.

exp :: Parser (Exp SourcePos)Source

Expression parser.

chunk :: Parser (Block SourcePos)Source

Lua file parser.