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
I
iTasks-SDK
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
74
Issues
74
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
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
iTasks-SDK
Commits
8016fb16
Commit
8016fb16
authored
Jun 07, 2019
by
Tim Steenvoorden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweak ux
parent
f0907ba3
Pipeline
#24903
failed with stage
in 2 minutes and 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
Examples/DynamicEditor/DynEditorExample.icl
Examples/DynamicEditor/DynEditorExample.icl
+7
-5
No files found.
Examples/DynamicEditor/DynEditorExample.icl
View file @
8016fb16
...
...
@@ -19,15 +19,17 @@ Start world = doTasks editTask world
editTask
=
forever
(
enterInformation
(
"Contruct a task"
,
info
)
[
EnterUsing
id
$
dynamicEditor
taskEditor
]
(
enterInformation
(
"Contruct a task"
,
info
1
)
[
EnterUsing
id
$
dynamicEditor
taskEditor
]
>>=
\
v
->
viewInformation
(
"Evaluate the task"
,
""
)
[]
()
viewInformation
(
"Evaluate the task"
,
info2
)
[]
()
||-
(
evalTaskConstExpr
(
toValue
taskEditor
v
)
<<@
ApplyLayout
frameCompact
)
>>=
viewInformation
(
"Done!"
,
""
)
[]
>>=
viewInformation
(
"Done!"
,
info3
)
[]
>>=
return
)
where
info
=
"Select the editors and combinators you'd like to use. When you're ready, push the 'Continue' button below to run your program."
info1
=
"Select the editors and combinators you'd like to use. When you're ready, push the 'Continue' button below to run your program."
info2
=
"Now step through the task you just created to test it."
info3
=
"The program is done, the result is given below."
// Data ////////////////////////////////////////////////////////////////////////
...
...
@@ -103,7 +105,7 @@ where
(
Typed
TaskExpr
(
Task
a
))
(
Typed
TaskFuncExpr
(
a
->
Task
b
))
->
Typed
TaskExpr
(
Task
b
)
)
,
functionConsDyn
"When"
"
when
"
,
functionConsDyn
"When"
"
guarded sequence
"
(
dynamic
\(
Typed
task1
)
(
Typed
steps
)
->
Typed
(
When
task1
steps
)
::
// Typed (When task1 [(expr, pred, tfExpr) \\ (Typed expr, pred, Typed tfExpr) <- steps]) ::
...
...
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