test updates woooo

This commit is contained in:
Scarlett
2025-05-04 16:05:13 -04:00
parent ea7c284665
commit a61d0a57e8
167 changed files with 1757 additions and 572 deletions

View File

@ -1,4 +1,4 @@
$$ TEST: [-asc -tc]
(* TEST: [-asc -tc] *)
(* type string : 1 -> character *)
type M : string -> integer

View File

@ -1,4 +1,4 @@
$$ TEST: [-asc -tc]
(* TEST: [-asc -tc] *)
type M : string -> integer
function entry : M

View File

@ -1,4 +1,4 @@
$$ TEST: [-asc -tc]
(* TEST: [-asc -tc] *)
type M : string -> integer
function entry : M

View File

@ -1,4 +1,4 @@
$$ TEST: [-asc -tc]
(* TEST: [-asc -tc] *)
type M : string -> integer
function entry : M

View File

@ -0,0 +1,11 @@
(* TEST: [-asc -tc] *)
type M : string -> integer
function foo : M
foo (s) := {
[
int: x
]
return 0;
}

View File

@ -0,0 +1,8 @@
(* TEST: [-asc -tc] *)
type M : string -> integer
function entry : M
entry(s) := {
return x;
}

View File

@ -1,4 +1,4 @@
$$ TEST: [-asc -tc]
(* TEST: [-asc -tc] *)
type string2int: string -> integer
function entry : string2int

View File

@ -0,0 +1,15 @@
(* TEST: [-asc -tc] *)
type string2int: string -> integer
function entry : string2int
entry(arg) := {
[ integer: i; integer: sum ]
sum := 0;
i := 0;
while (i < 10) {
sum = sum + i;
i := i + 1;
}
return 0;
}

View File

@ -1,4 +1,4 @@
$$ TEST: [-asc -tc]
(* TEST: [-asc -tc] *)
type M : integer -> integer
function f : M

View File

@ -1,4 +1,4 @@
$$ TEST: [-asc -tc]
(* TEST: [-asc -tc] *)
type M : integer -> integer
function f : M

View File

@ -1,4 +1,4 @@
$$ TEST: [-asc -tc]
(* TEST: [-asc -tc] *)
(* Type definitions *)
(* mapping type *)
@ -29,7 +29,6 @@ function c: string2int_2_integer
function d: iic2b
d(x,y,z) := {
[string: s;integer: s]
return (x < y & z < 'm');
}
@ -58,11 +57,11 @@ c(x) := {
entry is the first function called
*)
entry(arg) := {
[integer: result; string2int: f; integer: temp; character: char]
[integer: result; string2int: f; integer: temp]
temp := a("Hello");
f := b(temp);
result := c(f);
if (d(1,2,char))
if (d(1,2,'c'))
then {
result := 0;
}

View File

@ -1,4 +1,5 @@
$$ TEST: [-asc -tc]
(* TEST: [-asc -tc] *)
(* Type definitions *)
type int2int: integer -> integer
type string2int: string -> integer

View File

@ -1,4 +1,4 @@
$$ TEST: [-asc -tc]
(* TEST: [-asc -tc] *)
(* Type definitions *)
type string2int: string -> integer
@ -46,9 +46,9 @@ selectionSort(data) := {
data(i) := temp;
i := i + 1;
}
return true;
return true;
}
(* Function definition
entry is the first function called

View File

@ -1,2 +1,2 @@
$$ TEST: [-asc -tc]
(* TEST: [-asc -tc] *)
type A : 1 -> integer

View File

@ -1,3 +1,3 @@
$$ TEST: [-asc -tc]
(* TEST: [-asc -tc] *)
type M : integer -> character

View File

@ -1,2 +1,2 @@
$$ TEST: [-asc -tc]
(* TEST: [-asc -tc] *)
type R : [ integer : i ; character : c ]

View File

@ -1,4 +1,4 @@
$$ TEST: [-asc -tc]
(* TEST: [-asc -tc] *)
(*
At compiler start-up your program should