Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class Show cur => Cursorable cur where
- offset :: cur -> Int
- compareOffset :: CodeQ (cur -> cur -> Ordering)
- lowerOffset :: CodeQ (cur -> cur -> Bool)
- sameOffset :: CodeQ (cur -> cur -> Bool)
- shiftRight :: CodeQ (cur -> Int -> cur)
- shiftRightText :: Text -> Int -> Text
- shiftLeftText :: Text -> Int -> Text
- shiftRightByteString :: UnpackedLazyByteString -> Int -> UnpackedLazyByteString
- shiftLeftByteString :: UnpackedLazyByteString -> Int -> UnpackedLazyByteString
- offWith :: CodeQ (ts -> OffWith ts)
- newtype Text16 = Text16 Text
- newtype CharList = CharList String
- data Stream = !Char :> Stream
- nomore :: Stream
- data OffWith ts = OffWith !Int ts
- data OffWithStreamAnd ts = OffWithStreamAnd !Int !Stream ts
- data UnpackedLazyByteString = UnpackedLazyByteString !Int !Addr# ForeignPtrContents !Int !Int ByteString
- emptyUnpackedLazyByteString :: Int -> UnpackedLazyByteString
- class Cursorable (Cursor inp) => Input inp where
Class Cursorable
class Show cur => Cursorable cur where Source #
compareOffset :: CodeQ (cur -> cur -> Ordering) Source #
lowerOffset :: CodeQ (cur -> cur -> Bool) Source #
sameOffset :: CodeQ (cur -> cur -> Bool) Source #
shiftRight :: CodeQ (cur -> Int -> cur) Source #
Instances
Cursorable Int Source # | |
Cursorable Text Source # | |
Cursorable UnpackedLazyByteString Source # | |
Defined in Symantic.Parser.Machine.Input offset :: UnpackedLazyByteString -> Int Source # compareOffset :: CodeQ (UnpackedLazyByteString -> UnpackedLazyByteString -> Ordering) Source # lowerOffset :: CodeQ (UnpackedLazyByteString -> UnpackedLazyByteString -> Bool) Source # sameOffset :: CodeQ (UnpackedLazyByteString -> UnpackedLazyByteString -> Bool) Source # shiftRight :: CodeQ (UnpackedLazyByteString -> Int -> UnpackedLazyByteString) Source # | |
Cursorable (OffWith String) Source # | |
Defined in Symantic.Parser.Machine.Input offset :: OffWith String -> Int Source # compareOffset :: CodeQ (OffWith String -> OffWith String -> Ordering) Source # lowerOffset :: CodeQ (OffWith String -> OffWith String -> Bool) Source # sameOffset :: CodeQ (OffWith String -> OffWith String -> Bool) Source # shiftRight :: CodeQ (OffWith String -> Int -> OffWith String) Source # |
Type Text16
Type CharList
Type Stream
Type OffWith
Instances
Show ts => Show (OffWith ts) Source # | |
Cursorable (OffWith String) Source # | |
Defined in Symantic.Parser.Machine.Input offset :: OffWith String -> Int Source # compareOffset :: CodeQ (OffWith String -> OffWith String -> Ordering) Source # lowerOffset :: CodeQ (OffWith String -> OffWith String -> Bool) Source # sameOffset :: CodeQ (OffWith String -> OffWith String -> Bool) Source # shiftRight :: CodeQ (OffWith String -> Int -> OffWith String) Source # |
Type OffWithStreamAnd
data OffWithStreamAnd ts Source #
OffWithStreamAnd !Int !Stream ts |
Type UnpackedLazyByteString
data UnpackedLazyByteString Source #
Instances
Show UnpackedLazyByteString Source # | |
Defined in Symantic.Parser.Machine.Input showsPrec :: Int -> UnpackedLazyByteString -> ShowS # show :: UnpackedLazyByteString -> String # showList :: [UnpackedLazyByteString] -> ShowS # | |
Cursorable UnpackedLazyByteString Source # | |
Defined in Symantic.Parser.Machine.Input offset :: UnpackedLazyByteString -> Int Source # compareOffset :: CodeQ (UnpackedLazyByteString -> UnpackedLazyByteString -> Ordering) Source # lowerOffset :: CodeQ (UnpackedLazyByteString -> UnpackedLazyByteString -> Bool) Source # sameOffset :: CodeQ (UnpackedLazyByteString -> UnpackedLazyByteString -> Bool) Source # shiftRight :: CodeQ (UnpackedLazyByteString -> Int -> UnpackedLazyByteString) Source # |
Class Input
class Cursorable (Cursor inp) => Input inp where Source #
cursorOf :: CodeQ inp -> CodeQ (# Cursor inp, Cursor inp -> Bool, Cursor inp -> (# InputToken inp, Cursor inp #) #) Source #
Instances
Input String Source # | |
Input ByteString Source # | |
Defined in Symantic.Parser.Machine.Input type Cursor ByteString Source # type InputToken ByteString Source # cursorOf :: CodeQ ByteString -> CodeQ (# Cursor ByteString, Cursor ByteString -> Bool, Cursor ByteString -> (# InputToken ByteString, Cursor ByteString #) #) Source # | |
Input ByteString Source # | |
Defined in Symantic.Parser.Machine.Input type Cursor ByteString Source # type InputToken ByteString Source # cursorOf :: CodeQ ByteString -> CodeQ (# Cursor ByteString, Cursor ByteString -> Bool, Cursor ByteString -> (# InputToken ByteString, Cursor ByteString #) #) Source # | |
Input Text Source # | |
Input (UArray Int Char) Source # | |
Defined in Symantic.Parser.Machine.Input |