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

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

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

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

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