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
3bc4f58b
Commit
3bc4f58b
authored
Aug 10, 2001
by
Vincent Zweije
Browse files
Implement coretyperule
parent
43202a29
Changes
1
Hide whitespace changes
Inline
Side-by-side
sucl/coreclean.icl
View file @
3bc4f58b
...
...
@@ -77,5 +77,12 @@ coretyperule (SuclApply argc)
=
if
(
argc
==
0
)
(
restype
,
emptygraph
)
(
outfunctype
,
updategraph
outfunctype
(
SuclFN
(
argc
-1
),
argtypes
++[
restype
])
emptygraph
)
coretyperule
_
=
undef
coretyperule
(
SuclInt
_)
=
consttyperule
SuclINT
coretyperule
(
SuclReal
_)
=
consttyperule
SuclREAL
coretyperule
(
SuclBool
_)
=
consttyperule
SuclBOOL
coretyperule
(
SuclUser
_)
=
abort
"coreclean: coretyperule: untyped user symbol"
coretyperule
(
SuclCase
_)
=
abort
"coreclean: coretyperule: untyped case symbol"
consttyperule
tsym
=
mkrule
[]
root
(
updategraph
root
(
tsym
,[])
emptygraph
)
where
root
=
SuclANONYMOUS
0
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