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

Safe HaskellNone

Text.Parsec.LTok

Description

Lexer/Parsec interface

Synopsis

Documentation

satisfy :: Stream [LTok] m LTok => (LTok -> Bool) -> ParsecT [LTok] u m LTokenSource

This parser succeeds whenever the given predicate returns true when called with parsed LTok. Same as satisfy.

tok :: Stream [LTok] m LTok => LToken -> ParsecT [LTok] u m LTokenSource

Parses given LToken.

anyNum :: Monad m => ParsecT [LTok] u m LTokenSource

Parses a LTokNum.

string :: Monad m => ParsecT [LTok] u m LTokenSource

Parses a LTokSLit.