Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-compiler-and-rts
compiler
Commits
2a0b3c13
Commit
2a0b3c13
authored
Aug 17, 2001
by
Vincent Zweije
Browse files
Introduce development support function "stub"
parent
95b83400
Changes
2
Show whitespace changes
Inline
Side-by-side
sucl/basic.dcl
View file @
2a0b3c13
...
...
@@ -176,5 +176,8 @@ showtriple :: !.(.a -> .String) !.(.b -> .String) !.(.c -> .String) !(.a,.b,.c)
// `Split sep' splits a list into a list of sublists which are separated by `sep'.
split
::
a
->
.(.[
a
]
->
[.[
a
]])
|
==
a
// `Stub modulename functionname message' aborts with a explanatory message
stub
::
.
String
.
String
.
String
->
a
// `Superset xs ys' determines whether ys is a superset (actually, super-multi-set or super-list) of xs.
superset
::
.[
a
]
->
.(.[
a
]
->
Bool
)
|
==
a
sucl/basic.icl
View file @
2a0b3c13
...
...
@@ -255,5 +255,10 @@ split sep
=
([
x
:
ys
],
yss
)
where
(
ys
,
yss
)
=
spl
xs
// `Stub modulename functionname message' aborts with a explanatory message
stub
::
.
String
.
String
.
String
->
a
stub
modulename
functionname
message
=
abort
(
modulename
+++
": "
+++
functionname
+++
": "
+++
message
)
superset
::
.[
a
]
->
.(.[
a
]
->
Bool
)
|
==
a
superset
set
=
isEmpty
o
(
removeMembers
set
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment