0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

新しいプログラミング言語を作ってみたい!

Last updated at Posted at 2024-10-14

こんな言語を作ってみたい!

※S nand 引数1 引数2だけが初期設定されています。

コマンド 引数 意味
V タイプ 名前 変数を作成
タイプ N→1,0 I入力 O出力 F関数
S 関数名 引数1 引数2 引数3 ...  引数n 変数名 変数に関数の結果を入れる(変数)
E 無し 関数の終わり

NOT

V F not
V I input
V O out
S nand input input out

AND

V F not
V I input
V O out
S nand input input out
↑前提

V F and
V I input_1
V I input_2
V O out
V N nand
S nand input_1 input_2 not_and
S not not_and out

一応チューリング完全なので、
隙間時間で作ってみます!

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?