LoginSignup
0
0

More than 1 year has passed since last update.

インタープリタを作る その31

Posted at

概要

インタープリタを作ってみた。
jsforthを使ってみた。

数9を4個つかって1から15までの数を表す式を投入。

9 9 - 9 9 / .
9 9 / 9 9 / + .
9 9 + 9 + 9 / .
9 9 9 + 9 / dup + .
9 9 9 + 9 / dup + - .
9 dup 9 + 9 + 9 / - .
9 9 9 + 9 / - .
9 9 9 drop 9 / - .
9 9 - 9 * 9 .
9 9 / 9 dup 9 / +  .
9 9 9 + 9 / + .
9 dup 9 9 + + 9 / + .
9 9 9 + 9 / dup + + .
9 dup 9 9 + 9 / dup + - + .
9 dup dup 9 + 9 + 9 / - + .

結果

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

成果物

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0