-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (53 loc) · 1.26 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<title>Cirru Rainbow</title>
<meta charset="utf-8"/>
<link rel="stylesheet" type="text/css" href="style/style.css">
<link rel="stylesheet" type="text/css" href="bower_components/rainbow/themes/twilight.css">
<script type="text/javascript" src="bower_components/rainbow/js/rainbow.js"></script>
<script type="text/javascript" src="bower_components/rainbow/js/language/generic.js"></script>
<script type="text/javascript" src="src/cirru.js"></script>
</head>
<body>
<pre><code data-language="cirru">echo ==== eval and code
set c $ code
print (number 1)
print $ eval c
number 1.4
string x
regex ^\s$
regex "^\\s-\"$"
sentence this is a string
assert
equal (bool right) (bool yes)
string "show print this"
set pseudo-func $ code
set a $ at parent $ at args $ number 1
set b $ at parent $ at args $ number 2
add a b
set num-a $ number 3
set num-b $ number 4
print $ call pseudo-func num-a num-b
pseudo-func num-a num-b
echo ==== testing control flows
set a $ number 1
set b $ number 2
set c $ number 1
if (equal a b)
echo a equals b
echo a not equals b
if (equal a c)
echo a is c
if (equal c b)
echo b is c
print $ begin
print (number 1)
string somthing
number 0
html a
b c
, d e
</code></pre>
</body>
</html>