language-ecmascript-0.11.1: JavaScript analysis tools

Safe HaskellSafe-Infered

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.

Documentation

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

identifier :: Stream s Identity Char => Parser s StringSource

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

operator :: Stream s Identity Char => Parser s StringSource

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

charLiteral :: Stream s Identity Char => Parser s CharSource

stringLiteral :: Stream s Identity Char => Parser s StringSource

natural :: Stream s Identity Char => Parser s IntegerSource

integer :: Stream s Identity Char => Parser s IntegerSource

float :: Stream s Identity Char => Parser s DoubleSource

naturalOrFloat :: Stream s Identity Char => Parser s (Either Integer Double)Source

decimal :: Stream s Identity Char => Parser s IntegerSource

hexadecimal :: Stream s Identity Char => Parser s IntegerSource

octal :: Stream s Identity Char => Parser s IntegerSource

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

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

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

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

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

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

semi :: Stream s Identity Char => Parser s StringSource

comma :: Stream s Identity Char => Parser s StringSource

colon :: Stream s Identity Char => Parser s StringSource

dot :: Stream s Identity Char => Parser s StringSource

identifierStart :: Stream s Identity Char => Parser s CharSource