Modulelanguage-c-0.9.3Haskell2010
Language.C.Data.InputStream
Compile time input abstraction for the parser, relying on ByteString. The String interface only supports Latin-1 since alex-3, as alex now requires byte based access to the input stream.
- 1 type
- 8 values
- Packagelanguage-c-0.9.3
- Exports9
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceInputStream.hs
read a file into an InputStream
convert InputStream to String
convert a String to an InputStream
(b,is') = takeByte is reads and removes
the first byte b from the InputStream is
(c,is') = takeChar is reads and removes
the first character c from the InputStream is
return True if the given input stream is empty
str = takeChars n is returns the first n characters
of the given input stream, without removing them
countLines returns the number of text lines in the
given InputStream