Hets - the Heterogeneous Tool Set

CopyrightChristian Maeder and Uni Bremen 2004
LicenseGPLv2 or higher, see LICENSE.txt
MaintainerChristian.Maeder@dfki.de
Stabilityexperimental
Portabilityportable
Safe HaskellSafe

Common.ConvertLiteral

Description

Generically converting literals

Synopsis

Documentation

type SplitM a = a -> Maybe (Id, [a]) Source #

isGenLiteral :: SplitM a -> GlobalAnnos -> Id -> [a] -> Bool Source #

isGenNumber :: SplitM a -> GlobalAnnos -> Id -> [a] -> Bool Source #

is a number of more than one digit

isGenNum :: SplitM a -> GlobalAnnos -> Id -> [a] -> Bool Source #

is a number or a single digit

isGenString :: SplitM a -> GlobalAnnos -> Id -> [a] -> Bool Source #

isGenList :: SplitM a -> GlobalAnnos -> Id -> [a] -> Bool Source #

isGenFloat :: SplitM a -> GlobalAnnos -> Id -> [a] -> Bool Source #

isGenFrac :: SplitM a -> GlobalAnnos -> Id -> [a] -> Bool Source #

toNumber :: (a -> (Id, [a])) -> Id -> [a] -> Token Source #

toFrac :: (a -> (Id, [a])) -> [a] -> Token Source #

toFloat :: (a -> (Id, [a])) -> GlobalAnnos -> [a] -> Token Source #

toString :: (a -> (Id, [a])) -> GlobalAnnos -> Id -> [a] -> Token Source #

toMixfixList :: (Id -> [a] -> Id -> b) -> (a -> (Id, [a])) -> GlobalAnnos -> Id -> [a] -> b Source #

construct list result from application

toChar :: Token -> String Source #