-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
clay.scroll
92 lines (80 loc) · 1.53 KB
/
clay.scroll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
import ../code/conceptPage.scroll
id clay
name clay
appeared 2010
creators KS Sreeram and Joe Groff
tags pl
website http://claylabs.com/clay
latestVersion v0.1.2
writtenIn cpp make xml python cmake c java markdown vim-script go bourne-shell css svg lisp
repoStats
firstCommit 2010
commits 8315
committers 40
files 1530
newestCommit 2014
country Various
originCommunity https://claylabs.com/
projectEuler Clay
memberCount
2022 5
reference https://bitbucket.org/kssreeram/clay/src/default/
pygmentsHighlighter Clay
filename c_like.py
fileExtensions clay
example
import printer.(println);
factorial1(n) {
if (n == 0)
return 1;
return n*factorial1(n-1);
}
factorial2(n) {
var p = 1;
again :
if (n == 0)
return p;
p *: n;
n -: 1;
goto again;
}
factorial3(n) {
var p = 1;
while (true) {
if (n == 0) break;
p *: n;
n -: 1;
}
return p;
}
factorial4(n) {
var p = 1;
for (i in range(n))
p *: i+1;
return p;
}
main() {
var n = 7;
n -: 1;
var f = factorial4(n);
println("factorial(", n, ") = ", f);
return 0;
}
twitter https://twitter.com/claylabs
githubRepo https://github.com/jckarter/clay
firstCommit 2010
stars 395
forks 37
subscribers 23
created 2010
updated 2022
description The Clay programming language
issues 63
printToken println
hasPrintDebugging true
hasHexadecimals true
hasIntegers true
hasLineComments true
hasMultiLineComments true
hasComments true
isbndb 0