-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstreet.cred
More file actions
110 lines (85 loc) · 1.75 KB
/
street.cred
File metadata and controls
110 lines (85 loc) · 1.75 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
@includeC("random.h")
@includeC("ing.h")
literal heyo(){
int a;
return "Value";
}
bool credbuild {
redb_mod module = new_module("cred");
set_name(&module, "credgen");
set_target(&module,target_native);
&module.source_all(".cred");
return module.cred_compile();
switch (hello) {
case 1: {print("1");}
case 2: {print("22"); }
case 3: {print("3"); }
// case 2 => {print("1"); }
// 2 => {print("1"); }
}
}
int a {
chunk_array:int *testarr;
literal ly = "like";
int test = 0;
testarr = chunk_array_create(12,sizeof(int));
int x = testarr[0];
testarr.push(0);
}
void draw(int x, int y, int color, int overwrite) { int b = 0; }
c(int x) { int l; if (x) { return 0; } }
void print(){
}
int t = u + i;
enum test_enum {
one,
two,
three
}
interface hello {
int func(int rule, Token elem);
test;
}
struct testType: hello {
func(int rule, Token elem) {
int a = 0;
}
test {
print("Test succeeded %i",prop1);
}
helper {
}
int prop1;
int prop2;
}
int main {
int y = a();
int x = 1-(0-2);
int z = x[0];
{
print("This is democracy manifest");
}
defer {
cleanup();
}
defer x = 0;
for (int i = 0; i < 10; i = i + 1){
}
while (0){
print();
}
return 0;
do {
print();
} while(0);
draw(x, y, 0xFF00FF00, 0);
x = x + 1;
x = y.run();
if (x < 100) { } else { print("Done with x"); }
y = y + 1;
if y < 100 { } else if (y == 100) { print("Exactly 100 y"); }
print();
traverse_directory(s.data, true, int (literal directory, literal name){
print("Inside lambda");
});
}