aboutsummaryrefslogtreecommitdiff
path: root/CleanC.dcl
diff options
context:
space:
mode:
authorCamil Staps2016-02-01 17:47:57 +0100
committerCamil Staps2016-02-01 17:47:57 +0100
commit921200f7d3790ba5a1f61d750b6d84bf917db966 (patch)
tree3409353cfe827abdc0b9fabacf8bef787d1912ed /CleanC.dcl
parentBetter practices string copying (diff)
Void return typeHEADmaster
Diffstat (limited to 'CleanC.dcl')
-rw-r--r--CleanC.dcl10
1 files changed, 7 insertions, 3 deletions
diff --git a/CleanC.dcl b/CleanC.dcl
index a385a50..d0257c6 100644
--- a/CleanC.dcl
+++ b/CleanC.dcl
@@ -23,12 +23,16 @@ SOFTWARE. */
definition module CleanC
from StdClass import class toInt, class toString, class toReal,
- class fromInt, class fromString, class fromReal
+ class fromInt, class fromString, class fromReal,
+ class ==
:: State
-:: CType = Int | String | Real
-:: CParam = CI Int | CS String | CR Real
+:: CType = Int | String | Real | Void
+:: CParam = CI Int | CS String | CR Real | CV
+
+instance == CType
+instance == CParam
cNewState :: *State