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
78bcc157
Commit
78bcc157
authored
Nov 06, 2001
by
John van Groningen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed conversion table
parent
c1af8608
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
frontend/main.icl
frontend/main.icl
+9
-9
No files found.
frontend/main.icl
View file @
78bcc157
...
...
@@ -80,7 +80,7 @@ addModule _ mod NoModules
::
DclCache
=
{
dcl_modules
::!{#
DclModule
},
functions_and_macros
::!{#
FunDef
},
cached_macros
::!.{#.{#
FunDef
}
},
predef_symbols
::!.
PredefinedSymbols
,
hash_table
::!.
HashTable
,
heaps
::!.
Heaps
...
...
@@ -96,7 +96,7 @@ empty_cache :: *SymbolTable -> *DclCache
empty_cache
symbol_heap
#
heaps
=
{
hp_var_heap
=
newHeap
,
hp_expression_heap
=
newHeap
,
hp_type_heaps
=
{
th_vars
=
newHeap
,
th_attrs
=
newHeap
}}
#
(
predef_symbols
,
hash_table
)
=
buildPredefinedSymbols
(
newHashTable
symbol_heap
)
=
{
dcl_modules
={},
functions_an
d_macros
={},
predef_symbols
=
predef_symbols
,
hash_table
=
hash_table
,
heaps
=
heaps
}
=
{
dcl_modules
={},
cache
d_macros
={},
predef_symbols
=
predef_symbols
,
hash_table
=
hash_table
,
heaps
=
heaps
}
DoCommand
[
'c'
:_]
argument
symbol_heap
ms
#
(
file_name
,
rest_input
)
=
SplitAtLayoutChar
(
dropWhile
isSpace
argument
)
...
...
@@ -170,19 +170,19 @@ dummyModTime _ f
=
(
""
,
f
)
loadModule
::
Ident
*
DclCache
*
MainState
->
*(!
Optional
InterMod
,!*
DclCache
,!*
MainState
);
loadModule
mod_ident
{
dcl_modules
,
functions_an
d_macros
,
predef_symbols
,
hash_table
,
heaps
}
ms
=:{
ms_files
,
ms_error
,
ms_io
,
ms_out
,
ms_paths
}
#
(
optional_syntax_tree
,
cached_
functions_an
d_macros
,
cached_dcl_mods
,_,
main_dcl_module_n
,
predef_symbols
,
hash_table
,
ms_files
,
ms_error
,
ms_io
,
ms_out
,_,
heaps
)
=
frontEndInterface
{
feo_up_to_phase
=
FrontEndPhaseAll
,
feo_generics
=
False
,
feo_fusion
=
False
}
mod_ident
{
sp_locations
=
[],
sp_paths
=
ms_paths
}
dcl_modules
functions_an
d_macros
No
predef_symbols
hash_table
dummyModTime
ms_files
ms_error
ms_io
ms_out
No
heaps
loadModule
mod_ident
{
dcl_modules
,
cache
d_macros
,
predef_symbols
,
hash_table
,
heaps
}
ms
=:{
ms_files
,
ms_error
,
ms_io
,
ms_out
,
ms_paths
}
#
(
optional_syntax_tree
,
cached_
cache
d_macros
,
cached_dcl_mods
,_,
main_dcl_module_n
,
predef_symbols
,
hash_table
,
ms_files
,
ms_error
,
ms_io
,
ms_out
,_,
heaps
)
=
frontEndInterface
{
feo_up_to_phase
=
FrontEndPhaseAll
,
feo_generics
=
False
,
feo_fusion
=
False
}
mod_ident
{
sp_locations
=
[],
sp_paths
=
ms_paths
}
dcl_modules
cache
d_macros
No
predef_symbols
hash_table
dummyModTime
ms_files
ms_error
ms_io
ms_out
No
heaps
#
ms
=
{
ms
&
ms_files
=
ms_files
,
ms_error
=
ms_error
,
ms_io
=
ms_io
,
ms_out
=
ms_out
}
=
case
optional_syntax_tree
of
Yes
{
fe_icl
={
/*icl_functions,*/
icl_used_module_numbers
},
fe_dcls
,
fe_dclIclConversions
,
fe_iclDclConversions
}
#
dcl_modules
={{
dcl_module
\\
dcl_module
<-:
cached_dcl_mods
}
&
[
main_dcl_module_n
].
dcl_conversions
=
No
}
Yes
{
fe_icl
={
/*icl_functions,*/
icl_used_module_numbers
},
fe_dcls
}
#
dcl_modules
={{
dcl_module
\\
dcl_module
<-:
cached_dcl_mods
}
&
[
main_dcl_module_n
].
dcl_
macro_
conversions
=
No
}
#
var_heap
=
remove_expanded_types_from_dcl_modules
0
dcl_modules
icl_used_module_numbers
heaps
.
hp_var_heap
#
heaps
=
{
heaps
&
hp_var_heap
=
var_heap
}
->
(
Yes
(
buildInterMod
mod_ident
icl_used_module_numbers
fe_dcls
),
{
dcl_modules
=
dcl_modules
,
functions_and_macros
=
cached_functions_an
d_macros
,
predef_symbols
=
predef_symbols
,
hash_table
=
hash_table
,
heaps
=
heaps
},
ms
)
{
dcl_modules
=
dcl_modules
,
cached_macros
=
cached_cache
d_macros
,
predef_symbols
=
predef_symbols
,
hash_table
=
hash_table
,
heaps
=
heaps
},
ms
)
No
->
(
No
,
{
dcl_modules
=
dcl_modules
,
functions_and_macros
=
cached_functions_an
d_macros
,
predef_symbols
=
predef_symbols
,
hash_table
=
hash_table
,
heaps
=
heaps
},
ms
)
->
(
No
,
{
dcl_modules
=
dcl_modules
,
cached_macros
=
cached_cache
d_macros
,
predef_symbols
=
predef_symbols
,
hash_table
=
hash_table
,
heaps
=
heaps
},
ms
)
remove_expanded_types_from_dcl_modules
::
Int
{#
DclModule
}
NumberSet
*
VarHeap
->
*
VarHeap
remove_expanded_types_from_dcl_modules
module_n
dcls
used_module_numbers
var_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