language-lua-0.11.0.2: Lua parser and pretty-printer
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Lua.Parser

Synopsis

Documentation

parseText Source #

Arguments

:: Parser a 
-> Text

chunk

-> Either (SourceRange, String) a 

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

parseNamedText Source #

Arguments

:: Parser a 
-> String

name

-> Text

chunk

-> Either (SourceRange, String) a 

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

parseTokens :: Parser a -> [Lexeme Token] -> Either (SourceRange, String) a Source #

Parse a stream of tokens.