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
19a6d7a5
Commit
19a6d7a5
authored
Jun 05, 2019
by
Steffen Michels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
re-implement evalTaskConstExpr for When
parent
70fb2831
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Examples/DynamicEditor/DynEditorExample.icl
Examples/DynamicEditor/DynEditorExample.icl
+5
-5
No files found.
Examples/DynamicEditor/DynEditorExample.icl
View file @
19a6d7a5
...
...
@@ -199,11 +199,11 @@ evalTaskConstExpr (Or task1 task2) = evalTaskConstExpr task1
evalTaskConstExpr
(
And
task1
task2
)
=
evalTaskConstExpr
task1
-&&-
evalTaskConstExpr
task2
@
\(
a
,
b
)
->
VTuple
a
b
/*evalTaskConstExpr (When task1 options) = evalTaskConstExpr task1 >>* reverse (mkSteps options [])
evalTaskConstExpr
(
When
task1
options
)
=
evalTaskConstExpr
task1
>>*
[
OnAction
(
Action
butName
)
(
ifValue
(
test
pred
)(
evalTaskFuncExpr
taskFunc
))
\\
(
pred
,
butName
,
taskFunc
)
<-
options
]
where
mkSteps (Step1 pred butName task) steps = [OnAction (Action butName) (ifValue (test pred) (evalTaskFuncExpr task)):steps]
mkSteps (StepN pred butName task mStep) steps = mkSteps mStep [OnAction (Action butName) (ifValue (test pred) (evalTaskFuncExpr task)):steps]
test
pred
(
VInt
i
)
=
case
pred
of
(
LessV
(
VInt
j
))
=
i
<
j
(
GrtV
(
VInt
j
))
=
i
>
j
...
...
@@ -211,7 +211,7 @@ where
test
pred
(
VBool
i
)
=
case
pred
of
(
EqV
(
VBool
j
))
=
i
==
j
(
LessV
(
VBool
j
))
=
False
(GrtV (VBool j)) = False
*/
(
GrtV
(
VBool
j
))
=
False
evalTaskFuncExpr
::
TaskFuncExpr
Value
->
Task
Value
evalTaskFuncExpr
(
ViewInformation
p
)
(
VInt
i
)
=
(
viewInformation
p
[]
i
@
VInt
)
<<@
ApplyLayout
arrangeHorizontal
...
...
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