-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME-JA
More file actions
28 lines (23 loc) · 1.2 KB
/
README-JA
File metadata and controls
28 lines (23 loc) · 1.2 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
python-whitespace
これはPythonで書かれたWhitespaceのインタプリタです。
Python2.7及びPython3.3で動くと思います。
使い方:
単体のインタプリタとして:
$ python whitespace.py <Whitespaceのプログラムファイル>
プログラムに組み込むとき:
1. Whitespaceのプログラムを命令とラベルのリストに変換する
compiled_program = compile_whitespace(program_str)
2. 変換したプログラムデータを実行する
output = run_whitespace(compiled_program,input)
注意:
- このプログラムには、バグ、仕様の読解ミス、
またはその他の不都合が含まれている可能性があります。
- 公式インタプリタと違い、「数値読み込み」命令はC言語でいうと
scanf("%d",&input)のような動作をします。
すなわち、このインタプリタでは1行に複数の空白区切りの整数を書いても
読み込めます。
リンク:
Whitespace
http://compsoc.dur.ac.uk/whitespace/index.php
ライセンス:
このプログラムはThe zlib/libpng Licenseでライセンスされています。