Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
compiler
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
clean-compiler-and-rts
compiler
Commits
f4cdeb55
Commit
f4cdeb55
authored
Oct 18, 2001
by
John van Groningen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make source code clean 2.0 compatible
parent
a22251cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
frontend/transform.icl
frontend/transform.icl
+4
-4
No files found.
frontend/transform.icl
View file @
f4cdeb55
...
...
@@ -98,15 +98,15 @@ instance lift App
where
lift
app
=:{
app_symb
=
app_symbol
=:{
symb_arity
,
symb_kind
=
SK_Function
{
glob_object
,
glob_module
}},
app_args
}
ls
|
glob_module
==
ls
.
ls_x
.
LiftStateX
.
x_main_dcl_module_n
#
!
fun_def
=
ls
.
ls_x
.
x_fun_defs
.[
glob_object
]
#
(
fun_def
,
ls
)
=
ls
!
ls_x
.
x_fun_defs
.[
glob_object
]
=
lift_function_app
app
fun_def
.
fun_info
.
fi_free_vars
ls
#
(
app_args
,
ls
)
=
lift
app_args
ls
=
({
app
&
app_args
=
app_args
},
ls
)
lift
app
=:{
app_symb
=
{
symb_kind
=
SK_LocalMacroFunction
glob_object
},
app_args
}
ls
#
!
fun_def
=
ls
.
ls_x
.
x_fun_defs
.[
glob_object
]
#
(
fun_def
,
ls
)
=
ls
!
ls_x
.
x_fun_defs
.[
glob_object
]
=
lift_function_app
app
fun_def
.
fun_info
.
fi_free_vars
ls
lift
app
=:{
app_symb
=
{
symb_kind
=
SK_LocalDclMacroFunction
{
glob_object
,
glob_module
}}}
ls
#
!
fun_def
=
ls
.
ls_x
.
x_macro_defs
.[
glob_module
,
glob_object
]
#
(
fun_def
,
ls
)
=
ls
!
ls_x
.
x_macro_defs
.[
glob_module
,
glob_object
]
=
lift_function_app
app
fun_def
.
fun_info
.
fi_free_vars
ls
lift
app
=:{
app_args
}
ls
#
(
app_args
,
ls
)
=
lift
app_args
ls
...
...
@@ -125,7 +125,7 @@ where
add_free_variables_in_app
[]
app_args
var_heap
expr_heap
=
(
app_args
,
var_heap
,
expr_heap
)
add_free_variables_in_app
[{
fv_name
,
fv_info_ptr
}
:
free_vars
]
app_args
var_heap
expr_heap
#
!
var_info
=
s
readPtr
fv_info_ptr
var_heap
#
(
var_info
,
var_heap
)
=
readPtr
fv_info_ptr
var_heap
=
case
var_info
of
VI_LiftedVariable
var_info_ptr
#
(
var_expr_ptr
,
expr_heap
)
=
newPtr
EI_Empty
expr_heap
...
...
Write
Preview
Markdown
is supported
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