Home
last modified time | relevance | path

Searched refs:TokInt (Results 1 – 13 of 13) sorted by relevance

/dports/devel/hs-spago/spago-0.20.3/_cabal_deps/cborg-0.2.5.0/tests/Tests/
H A DProperties.hs19 , TokInt
681 data TokInt = TokInt Bool UInt function
684 instance Token TokInt where
685 type Imp TokInt = Int
690 | n >= 0 = TokInt True ((Ref.toUInt . fromIntegral) n)
696 encodeRef (TokInt True n) = Ref.encodeToken (Ref.MT0_UnsignedInt n)
697 encodeRef (TokInt False n) = Ref.encodeToken (Ref.MT1_NegativeInt n)
702 Ref.MT0_UnsignedInt n -> return (TokInt True n)
703 Ref.MT1_NegativeInt n -> return (TokInt False n)
706 instance Arbitrary TokInt where
[all …]
H A DCanonical.hs95 prop_decodeCanonical_Int :: TokInt -> Property
160 , testProperty "Int" (prop_decode_nonCanonical :: TokInt -> Property)
/dports/lang/purescript/purescript-0.14.5/_cabal_deps/cborg-0.2.5.0/tests/Tests/
H A DProperties.hs19 , TokInt
681 data TokInt = TokInt Bool UInt constructor
684 instance Token TokInt where
685 type Imp TokInt = Int
690 | n >= 0 = TokInt True ((Ref.toUInt . fromIntegral) n)
696 encodeRef (TokInt True n) = Ref.encodeToken (Ref.MT0_UnsignedInt n)
697 encodeRef (TokInt False n) = Ref.encodeToken (Ref.MT1_NegativeInt n)
702 Ref.MT0_UnsignedInt n -> return (TokInt True n)
703 Ref.MT1_NegativeInt n -> return (TokInt False n)
706 instance Arbitrary TokInt where
[all …]
H A DCanonical.hs95 prop_decodeCanonical_Int :: TokInt -> Property
160 , testProperty "Int" (prop_decode_nonCanonical :: TokInt -> Property)
/dports/lang/purescript/purescript-0.14.5/tests/
H A DTestCst.hs47 checkTok checkReadNum (\case TokInt _ a -> Just a; _ -> Nothing) . unInt
49 checkTok checkReadNum (\case TokInt _ a -> Just a; _ -> Nothing) . unHex
/dports/lang/purescript/purescript-0.14.5/_cabal_deps/purescript-cst-0.4.0.0/src/Language/PureScript/CST/
H A DPrint.hs61 TokInt raw _ -> raw
H A DUtils.hs174 TokInt _ a -> (tok, Left a)
180 TokInt _ a -> (tok, a)
H A DLexer.hs540 pure $ TokInt raw int'
650 else pure $ TokInt ("0x" <> chs) $ digitsToIntegerBase 16 $ Text.unpack chs
H A DTypes.hs76 | TokInt !Text !Integer constructor
H A DParser.y141 LIT_INT { SourceToken _ (TokInt _ _) }
H A DPositions.hs59 TokInt raw _ -> (0, Text.length raw)
/dports/lang/atlast/atlast-1.2/
H A Datldef.h53 #define TokInt 2 /* Integer scanned */ macro
H A Datlast.c434 return TokInt;
438 return TokInt;
3682 case TokInt: