language-ecmascript-0.19.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 Source #

identifier :: Stream s Identity Char => Parser s String Source #

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

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

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

charLiteral :: Stream s Identity Char => Parser s Char Source #

stringLiteral :: Stream s Identity Char => Parser s String Source #

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

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

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

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

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

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

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

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

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

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

identifierStart :: Stream s Identity Char => Parser s Char Source #

hexIntLit :: Stream s Identity Char => Parser s String Source #

decIntLit :: Stream s Identity Char => Parser s String Source #

decDigits :: Stream s Identity Char => Parser s String Source #

decDigitsOpt :: Stream s Identity Char => Parser s String Source #

exponentPart :: Stream s Identity Char => Parser s String Source #

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

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