Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
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
- lexeme :: Stream s Identity Char => Parser s a -> Parser s a
- identifier :: Stream s Identity Char => Parser s String
- reserved :: Stream s Identity Char => String -> Parser s ()
- operator :: Stream s Identity Char => Parser s String
- reservedOp :: Stream s Identity Char => String -> Parser s ()
- charLiteral :: Stream s Identity Char => Parser s Char
- stringLiteral :: Stream s Identity Char => Parser s String
- 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
- identifierStart :: Stream s Identity Char => Parser s Char
- hexIntLit :: Stream s Identity Char => Parser s String
- decIntLit :: Stream s Identity Char => Parser s String
- decDigits :: Stream s Identity Char => Parser s String
- decDigitsOpt :: Stream s Identity Char => Parser s String
- exponentPart :: Stream s Identity Char => Parser s String
- decLit :: Stream s Identity Char => Parser s (String, Bool)