-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex-tofu.html
218 lines (210 loc) · 7.12 KB
/
index-tofu.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
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<!DOCTYPE html>
<html lang="en">
<head>
<title>SIRO Language Interpreter</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css"
/>
<link rel="stylesheet" href="css/styles.css" />
<link rel="stylesheet" href="css/tofu.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=UA-120056704-1"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "UA-120056704-1");
</script>
<!-- for icon font -->
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.0.13/css/all.css"
integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp"
crossorigin="anonymous"
/>
<!-- for model javascript -->
<script src="js/sbf.js"></script>
</head>
<body>
<nav class="navbar navbar-expand navbar-dark bg-dark">
<a class="navbar-brand" href="#">SIRO Language Interpreter</a>
<div class="collapse navbar-collapse justify-content-end" id="navbar">
<ul class="navbar-nav">
<li class="nav-item dropdown">
<a
class="nav-link dropdown-toggle"
href="#"
id="navbarDropdown"
role="button"
data-toggle="dropdown"
>
TF
</a>
<div
class="dropdown-menu dropdown-menu-right"
aria-labelledby="navbarDropdown"
>
<a class="dropdown-item" href="">Tofu</a>
<a class="dropdown-item" href="index-en.html">English</a>
<a class="dropdown-item" href="index.html">日本語</a>
</div>
</li>
</ul>
</div>
</nav>
<div class="jumbotron text-center">
<h1>SIRO Language Interpreter</h1>
<h4 class="text-muted">Siro-chan's videos are so helpful, isn't it?</h4>
</div>
<div class="container">
<div class="row">
<div class="col-md-4">
<h3>Commands</h3>
<p>
The eight language commands each consist of the sayings of Siro:
</p>
<table class="table table-hover table-sm">
<thead>
<tr>
<th scope="col">command</th>
<th scope="col">Meaning</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">いーねっ!</th>
<td>
increment the data pointer (to point to the next cell to the
right).
</td>
</tr>
<tr>
<th scope="row">おほほい</th>
<td>
increment (increase by one) the byte at the data pointer.
</td>
</tr>
<tr>
<th scope="row">キューイ</th>
<td>
decrement the data pointer (to point to the next cell to the
left).
</td>
</tr>
<tr>
<th scope="row">ぱいーん</th>
<td>
decrement (decrease by one) the byte at the data pointer
</td>
</tr>
<tr>
<th scope="row">白組さん</th>
<td>
if the byte at the data pointer is zero, then instead of
moving the instruction pointer forward to the next command,
jump it forward to the command after the matching '救済'
command.
</td>
</tr>
<tr>
<th scope="row">救済</th>
<td>
if the byte at the data pointer is nonzero, then instead of
moving the instruction pointer forward to the next command,
jump it back to the command after the matching '白組さん'
command.
</td>
</tr>
<tr>
<th scope="row">なんて日だ!</th>
<td>output the byte at the data pointer.</td>
</tr>
<tr>
<th scope="row">ズンドコズンドコ♪</th>
<td>
accept one byte of input, storing its value in the byte at the
data pointer.
</td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-8">
<h3>Interpreter</h3>
<div class="form-group">
<label for="source">Source</label>
<textarea class="form-control" rows="15" id="source"></textarea>
</div>
<div class="clearfix">
<a
class="btn btn-primary float-right m-1 px-5"
href="javascript:void(0)"
onclick="run()"
>Run</a
>
<a
class="btn btn-success float-right m-1 px-5"
href="javascript:void(0)"
onclick="sampleCode()"
>Sample</a
>
</div>
<p>Result</p>
<div class="card card-body bg-light">
<pre id="out"></pre>
</div>
</div>
</div>
</div>
<footer class="page-footer font-small bg-dark mt-4">
<div class="text-center pt-3">
<ul class="list-inline">
<li class="list-inline-item">
<a
class="text-muted"
href="https://qiita.com/benisho_ga/items/50e674fded183a9e12f1"
>
About SIRO-lang
</a>
</li>
<li class="list-inline-item">
<a class="text-muted" href="https://twitter.com/app1e_s">
Contact
</a>
</li>
<li class="list-inline-item">
<a
class="text-muted"
href="https://twitter.com/intent/tweet?text=シロ組さん専用のプログラミング言語「siro」オンラインインタープリター&url=https://yameholo.github.io/SiroLangInterpreter"
>
Share
</a>
</li>
<li class="list-inline-item">
<a
class="text-muted"
href="https://github.com/yameholo/SiroLangInterpreter"
>
GitHub
</a>
</li>
</ul>
</div>
<div class="footer-copyright text-center pb-2 text-muted">
© 2020
<a href="https://twitter.com/app1e_s">meiehi</a>
</div>
</footer>
</body>
</html>