Portability | non-portable |
---|---|
Stability | experimental |
Maintainer | Edward Kmett <ekmett@gmail.com> |
- module Text.Trifecta.Parser.Token.Class
- module Text.Trifecta.Parser.Token.Combinators
- module Text.Trifecta.Parser.Token.Identifier
- decimal :: MonadParser m => m Integer
- hexadecimal :: MonadParser m => m Integer
- octal :: MonadParser m => m Integer
Documentation
Text.Trifecta.Parser.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.