language-ecmascript-0.17.1.0: JavaScript parser and pretty-printer library

Safe HaskellSafe
LanguageHaskell2010

Language.ECMAScript3.Lexer

Description

This isn't a lexer in the sense that it provides a JavaScript token-stream. This module provides character-parsers for various JavaScript tokens.

Synopsis

Documentation

lexeme :: Stream s Identity Char => Parser s a -> Parser s a #

reserved :: Stream s Identity Char => String -> Parser s () #

operator :: Stream s Identity Char => Parser s String #

reservedOp :: Stream s Identity Char => String -> Parser s () #

symbol :: Stream s Identity Char => String -> Parser s String #

whiteSpace :: Stream s Identity Char => Parser s () #

parens :: Stream s Identity Char => Parser s a -> Parser s a #

braces :: Stream s Identity Char => Parser s a -> Parser s a #

brackets :: Stream s Identity Char => Parser s a -> Parser s a #

squares :: Stream s Identity Char => Parser s a -> Parser s a #

semi :: Stream s Identity Char => Parser s String #

comma :: Stream s Identity Char => Parser s String #

colon :: Stream s Identity Char => Parser s String #

dot :: Stream s Identity Char => Parser s String #

decLit :: Stream s Identity Char => Parser s (String, Bool) #

returns (s, True) if the number is an integer, an (s, False) otherwise