Skip to content

Commit 03eb754

Browse files
committed
Extracting the sourceforge archives
To reproduce, run the following commands: $ tar --extract -f sourceforge-1.05alpha.tar.gz $ mv emerald-1.05alpha sourceforge-1.05alpha $ tar --extract -f sourceforge-1.06alpha.tar.gz $ mv emerald-1.06alpha sourceforge-1.06alpha $ git add sourceforge-1.05alpha $ git add sourceforge-1.06alpha
1 parent 5e49d1e commit 03eb754

File tree

3,504 files changed

+271982
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,504 files changed

+271982
-0
lines changed

sourceforge-1.05alpha/AUTHORS

Whitespace-only changes.
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
const RIS <- typeobject RIS
2+
function getElement [Integer] -> [AOpVectorE]
3+
function upperbound -> [Integer]
4+
function lowerbound -> [Integer]
5+
end RIS
6+
const AOpVectorType <- immutable typeobject AOpVectorType builtin 0x161b
7+
function getElement [Integer] -> [AOpVectorE]
8+
function upperbound -> [Integer]
9+
function lowerbound -> [Integer]
10+
function getSlice [Integer, Integer] -> [AOpVectorType]
11+
function getElement [Integer, Integer] -> [AOpVectorType]
12+
operation catenate [a : AOpVectorType] -> [r : AOpVectorType]
13+
operation || [a : AOpVectorType] -> [r : AOpVectorType]
14+
end AOpVectorType
15+
const AOpVector <- immutable object AOpVector builtin 0x101b
16+
17+
export function getSignature -> [result : Signature]
18+
result <- AOpVectorType
19+
end getSignature
20+
21+
export operation create[length : Integer] -> [result : AOpVectorType]
22+
result <-
23+
immutable object aAOpVector builtin 0x141b
24+
export function getElement [index : Integer] -> [result : AOpVectorE]
25+
primitive self "GET" [result] <- [index]
26+
end getElement
27+
export function upperbound -> [r : Integer]
28+
primitive self "UPB" [r] <- []
29+
end upperbound
30+
export function lowerbound -> [r : Integer]
31+
primitive "LDIB" 0 [r] <- []
32+
end lowerbound
33+
export function getSlice [i1 : Integer, length : Integer] -> [r : AOpVectorType]
34+
primitive self "GSLICE" [r] <- [i1, length]
35+
end getSlice
36+
export function getElement [i1 : Integer, length : Integer] -> [r : AOpVectorType]
37+
primitive self "GSLICE" [r] <- [i1, length]
38+
end getElement
39+
export operation catenate [a : AOpVectorType] -> [r : AOpVectorType]
40+
primitive self "CAT" [r] <- [a]
41+
end catenate
42+
export operation || [a : AOpVectorType] -> [r : AOpVectorType]
43+
primitive self "CAT" [r] <- [a]
44+
end ||
45+
end aAOpVector
46+
end create
47+
export operation literal[value : RIS, length : Integer] -> [r : AOpVectorType]
48+
var i : Integer
49+
var j : Integer
50+
var limit : Integer
51+
var e : AOpVectorE
52+
53+
i <- value.lowerbound
54+
limit <- length - 1
55+
r <- self.create[limit - i + 1]
56+
57+
j <- 0
58+
loop
59+
exit when i > limit
60+
e <- value[i]
61+
primitive "SET" [] <- [r, j, e]
62+
i <- i + 1
63+
j <- j + 1
64+
end loop
65+
end literal
66+
export operation literal [value : RIS] -> [r : AOpVectorType]
67+
r <- self.literal[value, value.upperbound + 1]
68+
end literal
69+
end AOpVector
70+
export AOpVector to "Builtins"
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
%
2+
% @(#)AOpVectorE.m 1.2 3/6/91
3+
%
4+
const AOpVectorE <- immutable object AOpVectorE builtin 0x101c
5+
const AOpVectorEType <- typeobject AOpVectorEType builtin 0x161c
6+
function getID -> [Integer]
7+
function getNArgs -> [Integer]
8+
function getNRess -> [Integer]
9+
function getIsFunction -> [Boolean]
10+
function getName -> [String]
11+
function getArguments -> [AParamList]
12+
function getResults -> [AParamList]
13+
end AOpVectorEType
14+
15+
export function getSignature -> [ result : Signature ]
16+
result <- AOpVectorEType
17+
end getSignature
18+
19+
export operation create [
20+
pid : Integer,
21+
pisFunction : Boolean,
22+
pname : String,
23+
parguments : AParamList,
24+
presults : AParamList] -> [ n : AOpVectorEType ]
25+
26+
n <- immutable object aAOpVectorE builtin 0x141c
27+
const id <- pid
28+
const isFunction <- pisFunction
29+
attached const name <- pname
30+
attached const arguments <- parguments
31+
attached const results <- presults
32+
33+
export function getid -> [r : Integer]
34+
r <- id
35+
end getid
36+
export function getNArgs -> [r : Integer]
37+
if arguments == nil then
38+
r <- 0
39+
else
40+
r <- arguments.upperbound + 1
41+
end if
42+
end getNArgs
43+
export function getNRess -> [r : Integer]
44+
if results == nil then
45+
r <- 0
46+
else
47+
r <- results.upperbound + 1
48+
end if
49+
end getNRess
50+
export function getIsFunction -> [r : Boolean]
51+
r <- IsFunction
52+
end getIsFunction
53+
export function getName -> [r : String]
54+
r <- name
55+
end getName
56+
export function getArguments -> [r : AParamList]
57+
r <- arguments
58+
end getArguments
59+
export function getResults -> [r : AParamList]
60+
r <- results
61+
end getResults
62+
end aAOpVectorE
63+
end create
64+
end AOpVectorE
65+
66+
export AOpVectorE to "Builtins"
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
const RIS <- typeobject RIS
2+
function getElement [Integer] -> [Signature]
3+
function upperbound -> [Integer]
4+
function lowerbound -> [Integer]
5+
end RIS
6+
const AParamListType <- immutable typeobject AParamListType builtin 0x161d
7+
function getElement [Integer] -> [Signature]
8+
function upperbound -> [Integer]
9+
function lowerbound -> [Integer]
10+
function getSlice [Integer, Integer] -> [AParamListType]
11+
function getElement [Integer, Integer] -> [AParamListType]
12+
operation catenate [a : AParamListType] -> [r : AParamListType]
13+
operation || [a : AParamListType] -> [r : AParamListType]
14+
end AParamListType
15+
const AParamList <- immutable object AParamList builtin 0x101d
16+
17+
export function getSignature -> [result : Signature]
18+
result <- AParamListType
19+
end getSignature
20+
21+
export operation create[length : Integer] -> [result : AParamListType]
22+
result <-
23+
immutable object aAParamList builtin 0x141d
24+
export function getElement [index : Integer] -> [result : Signature]
25+
primitive self "GET" [result] <- [index]
26+
end getElement
27+
export function upperbound -> [r : Integer]
28+
primitive self "UPB" [r] <- []
29+
end upperbound
30+
export function lowerbound -> [r : Integer]
31+
primitive "LDIB" 0 [r] <- []
32+
end lowerbound
33+
export function getSlice [i1 : Integer, length : Integer] -> [r : AParamListType]
34+
primitive self "GSLICE" [r] <- [i1, length]
35+
end getSlice
36+
export function getElement [i1 : Integer, length : Integer] -> [r : AParamListType]
37+
primitive self "GSLICE" [r] <- [i1, length]
38+
end getElement
39+
export operation catenate [a : AParamListType] -> [r : AParamListType]
40+
primitive self "CAT" [r] <- [a]
41+
end catenate
42+
export operation || [a : AParamListType] -> [r : AParamListType]
43+
primitive self "CAT" [r] <- [a]
44+
end ||
45+
end aAParamList
46+
end create
47+
export operation literal[value : RIS, length : Integer] -> [r : AParamListType]
48+
var i : Integer
49+
var j : Integer
50+
var limit : Integer
51+
var e : Signature
52+
53+
i <- value.lowerbound
54+
limit <- length - 1
55+
r <- self.create[limit - i + 1]
56+
57+
j <- 0
58+
loop
59+
exit when i > limit
60+
e <- value[i]
61+
primitive "SET" [] <- [r, j, e]
62+
i <- i + 1
63+
j <- j + 1
64+
end loop
65+
end literal
66+
export operation literal [value : RIS] -> [r : AParamListType]
67+
r <- self.literal[value, value.upperbound + 1]
68+
end literal
69+
end AParamList
70+
export AParamList to "Builtins"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
%
2+
% @(#)AbstractType.m 1.3 3/6/91
3+
%
4+
const type <- immutable object type builtin 0x1000
5+
const typeType <- immutable typeobject typeType builtin 0x1600
6+
function getSignature -> [Signature]
7+
end typeType
8+
export function getSignature -> [result : Signature]
9+
result <- typeType
10+
end getSignature
11+
export operation create -> [r : typeType]
12+
r <- immutable object aType builtin 0x1400
13+
export function getSignature -> [r : Signature]
14+
r <- typetype
15+
end getSignature
16+
end aType
17+
end create
18+
end type
19+
20+
export type to "Builtins"
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
%
2+
% @(#)Any.m 1.2 3/6/91
3+
%
4+
const Any <- immutable object Any builtin 0x1001
5+
const AnyType <- typeobject AnyType builtin 0x1601
6+
end AnyType
7+
8+
export function getSignature -> [result : Signature]
9+
result <- AnyType
10+
end getSignature
11+
export operation create -> [ n : AnyType ]
12+
n <- immutable object anAny builtin 0x1401
13+
end anAny
14+
end create
15+
end Any
16+
17+
export Any to "Builtins"

0 commit comments

Comments
 (0)