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
clean-ide
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
clean-and-itasks
clean-ide
Commits
1042ca9c
Commit
1042ca9c
authored
Mar 11, 2013
by
Jurrien Stutterheim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor startParse
parent
c20eebd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
cpm/Cpm.icl
cpm/Cpm.icl
+2
-5
No files found.
cpm/Cpm.icl
View file @
1042ca9c
...
...
@@ -15,7 +15,7 @@ import PmDriver
import
PmEnvironment
import
PmProject
import
set_return_code
import
StdBool
,
StdEnum
,
StdFile
,
StdFunc
,
StdMisc
import
StdBool
,
StdEnum
,
StdFile
,
StdFunc
,
StdMisc
,
StdTuple
import
Text
import
UtilIO
import
UtilStrictLists
...
...
@@ -108,9 +108,7 @@ Start world
=
doCpmAction
ch
pwd
cpm
world
startParse
::
[.
Char
]
->
CpmAction
startParse
args
=
case
filter
(\(
xs
,
_)
->
xs
==
[])
(
begin
pCpm
args
)
of
[(_,
as
):_]
->
as
_
->
CpmHelp
startParse
args
=
maybe
CpmHelp
snd
(
find
(
null
o
fst
)
(
begin
pCpm
args
))
doCpmAction
::
String
String
.
CpmAction
*
World
->
.
World
doCpmAction
cleanhome
pwd
(
Project
pn
pa
)
world
=
doProjectAction
cleanhome
pwd
pn
pa
world
...
...
@@ -216,7 +214,6 @@ doModPaths cleanhome pn project f world
where
paths
=
PR_GetPaths
project
prj
=
PR_SetPaths
False
paths
(
f
paths
)
project
openProject
::
!
FilePath
!
FilePath
!*
World
->
(!
MaybeErrorString
Project
,!*
World
)
openProject
cleanhome
projectfile
world
#
((
prj
,
ok
,
err
),
world
)
=
accFiles
(
ReadProjectFile
projectfile
cleanhome
)
world
...
...
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