trifecta-0.50.2.1: A modern parser combinator library with convenient diagnostics

Portabilitynon-portable
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>
Safe HaskellSafe-Infered

Text.Trifecta.Parser.Token

Contents

Description

 

Synopsis

Documentation

Text.Trifecta.Parser.Token.Prim

decimal :: MonadParser m => m IntegerSource

Parses a positive whole number in the decimal system. Returns the value of the number.

hexadecimal :: MonadParser m => m IntegerSource

Parses a positive whole number in the hexadecimal system. The number should be prefixed with "x" or "X". Returns the value of the number.

octal :: MonadParser m => m IntegerSource

Parses a positive whole number in the octal system. The number should be prefixed with "o" or "O". Returns the value of the number.