Eiji, the protagonist in David Mitchell’s novel number9dream described Tokyo as “too close up to see.” His experience of the metropolis goes on: “There are no distances and everything is above your head – dentists, kindergartens, dance studios. Even the roads and walkways are up on murky stilts. An evil-twin Venice with all the water drained away.” Indeed, evil or not, cities can be thought of as
こんにちは。人類は古来から、プログラムを書く際の力試しとして、Quine*1やBrainf*ck*2処理系を書く傾向にあります。 そのような傾向があり、やはり傾向であるので、書きました。 github.com ちなみに文法チェックはしていません。 構文木を作る 構文木といっても生成しているのはただの入れ子リストです。 [] が来たらリストを入れ子にしてそれっぽくします。 def _generate_tree(program, ptr): tree = [] while ptr < len(program): if program[ptr] == '[': leaf, nptr = _generate_tree(program, ptr + 1) tree.append(leaf + [']']) ptr = nptr elif program[ptr] == ']': return tre
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く