Skip to content
Snippets Groups Projects
Commit 891e78b3 authored by sven.panne@aedion.de's avatar sven.panne@aedion.de
Browse files

[project @ 2000-05-08 17:18:02 by panne]

* Changed a backslash at EOL to the word "backslash". Using cpp in
  conjunction with Haskell is a real hack...

* Renamed the module Ctypes to Ctype, because CTypes is (soon) a
  module from package lang. I'm not sure if two files differing only
  in their case work under "the" OS. Just to be sure...
parent 03b0ad10
No related merge requests found
Character classification
\begin{code}
module Ctypes
module Ctype
( is_ident -- Char# -> Bool
, is_symbol -- Char# -> Bool
, is_any -- Char# -> Bool
......@@ -146,7 +146,7 @@ charType c = case c of
'\89' -> cAny + cIdent + cUpper -- Y
'\90' -> cAny + cIdent + cUpper -- Z
'\91' -> cAny -- [
'\92' -> cAny + cSymbol -- \
'\92' -> cAny + cSymbol -- backslash
'\93' -> cAny -- ]
'\94' -> cAny + cSymbol -- ^
'\95' -> cAny + cIdent + cLower -- _
......
......@@ -54,7 +54,7 @@ import FastString
import StringBuffer
import GlaExts
import ST ( runST )
import Ctypes
import Ctype
import Char ( chr )
import Addr
import PrelRead ( readRational__ ) -- Glasgow non-std
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment