Skip to content
GitLab
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
0d1a0d21
Commit
0d1a0d21
authored
May 19, 2021
by
John van Groningen
Browse files
refactor, combine collectVariables and find_calls in module partition
parent
e279a37a
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
frontend/frontend.icl
View file @
0d1a0d21
...
...
@@ -223,7 +223,7 @@ frontEndInterface opt_file_dir_time options mod_ident search_paths cached_dcl_mo
->
case
options
.
feo_fusion
.
compile_with_fusion
of
True
#
(
fun_defs
,
predef_symbols
,
var_heap
,
expression_heap
,
error_admin
)
=
stripStrictLets
fun_defs
predef_symbols
var_heap
expression_heap
error_admin
=
stripStrictLets
fun_defs
main_dcl_module_n
def_min
def_max
predef_symbols
var_heap
expression_heap
error_admin
->
(
components
,
fun_defs
,
predef_symbols
,
var_heap
,
expression_heap
,
error_admin
)
_
->
(
components
,
fun_defs
,
predef_symbols
,
var_heap
,
expression_heap
,
error_admin
)
...
...
frontend/partition.dcl
View file @
0d1a0d21
definition
module
partition
import
syntax
,
transf
or
m
import
syntax
,
checksupp
or
t
partitionateFunctions
::
!*{#
FunDef
}
![
IndexRange
]
->
(!*{!
Component
},
!*{#
FunDef
})
partitionateFunctions`
::
!*{#
FunDef
}
![
IndexRange
]
!
Index
!
Int
!
Int
!*
PredefinedSymbols
!*
VarHeap
!*
ExpressionHeap
!*
ErrorAdmin
->
(!*{!
Component
},
!*{#
FunDef
},
!*
PredefinedSymbols
,
!*
VarHeap
,
!*
ExpressionHeap
,
!*
ErrorAdmin
)
partitionateFunctions`
::
!*{#
FunDef
}
![
IndexRange
]
!
Index
!
Int
!
Int
!*
PredefinedSymbols
!*
VarHeap
!*
ExpressionHeap
!*
ErrorAdmin
->
(!*{!
Component
},!*{#
FunDef
},!*
PredefinedSymbols
,!*
VarHeap
,!*
ExpressionHeap
,!*
ErrorAdmin
)
stripStrictLets
::
!*{#
FunDef
}
!*
PredefinedSymbols
!*
VarHeap
!*
ExpressionHeap
!*
ErrorAdmin
->
(!*{#
FunDef
},
!*
PredefinedSymbols
,
!*
VarHeap
,
!*
ExpressionHeap
,
!*
ErrorAdmin
)
stripStrictLets
::
!*{#
FunDef
}
!
Int
!
Int
!
Int
!*
PredefinedSymbols
!*
VarHeap
!*
ExpressionHeap
!*
ErrorAdmin
->
(!*{#
FunDef
},!*
PredefinedSymbols
,!*
VarHeap
,!*
ExpressionHeap
,!*
ErrorAdmin
)
partitionateFunctions``
::
!
Int
!
Int
!*{#
FunDef
}
!
ComponentMembers
!
Index
!
Int
!
Int
!*
FunctionHeap
!*
PredefinedSymbols
!*
VarHeap
!*
ExpressionHeap
!*
ErrorAdmin
->
(!
Int
,
![
Component
],
!*{#
FunDef
},
!*
FunctionHeap
,
!*
PredefinedSymbols
,
!*
VarHeap
,
!*
ExpressionHeap
,
!*
ErrorAdmin
)
partitionateFunctions``
::
!
Int
!
Int
!*{#
FunDef
}
!
ComponentMembers
!
Index
!
Int
!
Int
!*
FunctionHeap
!*
PredefinedSymbols
!*
VarHeap
!*
ExpressionHeap
!*
ErrorAdmin
->
(!
Int
,![
Component
],!*{#
FunDef
},!*
FunctionHeap
,!*
PredefinedSymbols
,!*
VarHeap
,!*
ExpressionHeap
,!*
ErrorAdmin
)
frontend/partition.icl
View file @
0d1a0d21
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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