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
02c37d42
Commit
02c37d42
authored
Nov 30, 2001
by
John van Groningen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initPtr modifies the *World
parent
597e5e94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
main/coclmain.icl
main/coclmain.icl
+6
-4
No files found.
main/coclmain.icl
View file @
02c37d42
...
...
@@ -14,8 +14,10 @@ coclMain :: ![{#Char}] !*World -> *World
coclMain
testArgs
world
#
(
commandArgs
,
world
)
=
getCommandArgs
(
tl
[
arg
\\
arg
<-:
getCommandLine
])
testArgs
world
#
(
symbol_table
,
world
)
=
init_identifiers
newHeap
world
#
(
success
,
world
)
=
accFiles
(
compiler
commandArgs
)
world
=
accFiles
(
compiler
commandArgs
symbol_table
)
world
=
set_return_code
(
if
success
0
(
-1
))
world
where
getCommandArgs
::
[{#
Char
}]
[{#
Char
}]
*
World
->
([{#
Char
}],
*
World
)
...
...
@@ -77,9 +79,9 @@ import thread_message;
import
code
from
"thread_message.obj"
;
compiler
::
![{#
Char
}]
*
Files
->
*(!
Bool
,!*
Files
);
compiler
commandArgs
files
#
dcl_cache
=
empty_cache
(
init_identifiers
newHeap
)
compiler
::
![{#
Char
}]
*
SymbolTable
*
Files
->
*(!
Bool
,!*
Files
);
compiler
commandArgs
symbol_table
files
#
dcl_cache
=
empty_cache
symbol_table
|
length
commandArgs
==
2
&&
commandArgs
!!
0
==
"-ide"
#
wm_number
=
get_message_number
;
#
thread_id
=
hex_to_int
(
commandArgs
!!
1
);
...
...
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