Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
uva
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
uva
Commits
17f971db
Commit
17f971db
authored
Dec 05, 2011
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
funclang series5: Source code cleanup.
parent
b98b9952
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
funclang-taddeus/series5/test.ml
funclang-taddeus/series5/test.ml
+2
-2
No files found.
funclang-taddeus/series5/test.ml
View file @
17f971db
...
...
@@ -75,11 +75,11 @@ test_freevars "a, b, c" ass1b;;
test_eval
"-5"
(
BinopAp
(
Sub
,
Num
4
,
Num
9
));;
test_eval
"false"
(
BinopAp
(
Lt
,
Num
6
,
Num
5
));;
test_eval
"true"
(
BinopAp
(
Or
,
Bool
true
,
Bool
false
));;
test_eval
"fun u -> fun w -> fun a -> a"
ass1a
;;
test_eval
"(a (b c))"
ass1b
;;
test_eval
"c + b"
(
Let
(
"a"
,
Var
"c"
,
(
BinopAp
(
Add
,
Var
"a"
,
Var
"b"
))));;
test_eval
"a"
(
Cond
(
Bool
true
,
Var
"a"
,
Var
"b"
));;
test_eval
"b"
(
Cond
(
Bool
false
,
Var
"a"
,
Var
"b"
));;
test_eval
"fun u -> fun w -> fun a -> a"
ass1a
;;
test_eval
"(a (b c))"
ass1b
;;
(* Test resolving of name clash *)
let
x
=
Var
"x"
in
...
...
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