diff options
| author | krasimir <krasimir@chalmers.se> | 2010-06-29 09:00:41 +0000 |
|---|---|---|
| committer | krasimir <krasimir@chalmers.se> | 2010-06-29 09:00:41 +0000 |
| commit | 272dcf69176234c0f032a8442ce4e7b449426bfd (patch) | |
| tree | 2622624af219ccd9e17acfe3cdef03cd75efcca3 /src/runtime/haskell/PGF/Data.hs | |
| parent | 88d7631b62fd004ac4d84d37cc94a133f0776f60 (diff) | |
introduce the type synonym Token=String in the PGF API
Diffstat (limited to 'src/runtime/haskell/PGF/Data.hs')
| -rw-r--r-- | src/runtime/haskell/PGF/Data.hs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/runtime/haskell/PGF/Data.hs b/src/runtime/haskell/PGF/Data.hs index 8b2fb41f8..fd357a678 100644 --- a/src/runtime/haskell/PGF/Data.hs +++ b/src/runtime/haskell/PGF/Data.hs @@ -44,19 +44,20 @@ data Concr = Concr { totalCats :: {-# UNPACK #-} !FId } +type Token = String type FId = Int type LIndex = Int type DotPos = Int data Symbol = SymCat {-# UNPACK #-} !Int {-# UNPACK #-} !LIndex | SymLit {-# UNPACK #-} !Int {-# UNPACK #-} !LIndex - | SymKS [String] - | SymKP [String] [Alternative] + | SymKS [Token] + | SymKP [Token] [Alternative] deriving (Eq,Ord,Show) data Production = PApply {-# UNPACK #-} !FunId [FId] | PCoerce {-# UNPACK #-} !FId - | PConst CId Expr [String] + | PConst CId Expr [Token] deriving (Eq,Ord,Show) data CncCat = CncCat {-# UNPACK #-} !FId {-# UNPACK #-} !FId {-# UNPACK #-} !(Array LIndex String) data CncFun = CncFun CId {-# UNPACK #-} !(UArray LIndex SeqId) deriving (Eq,Ord,Show) @@ -65,7 +66,7 @@ type FunId = Int type SeqId = Int data Alternative = - Alt [String] [String] + Alt [Token] [String] deriving (Eq,Ord,Show) |
