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

Text.Trifecta.Parser.Token

Synopsis

Documentation

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.