ドナルド・トランプ氏をイメージしたプログラミング言語「TrumpScript」が滅茶苦茶すぎる





PythonTrumpScript

GitHub - samshadwell/TrumpScript: Make Python great again

24
issue





使

100

import使

True,Falsefact,lie使

使



"America is great"

45100

WindowsPCPCPolitically Correct





(SSL)

root






git clone https://github.com/samshadwell/TrumpScript.git


$ which TRUMP
/path/to/TrumpScript/bin/TRUMP

Hello World

trumpscript.txt
tell "Hello World!"
America is great.


$TRUMP trumpscript.txt
Traceback (most recent call last):
  File "/.../TrumpScript/bin/../src/trumpscript/main.py", line 30, in <module>
    main()
  File "/.../TrumpScript/bin/../src/trumpscript/main.py", line 24, in main
    Utils.verify_system(args.Wall)
  File "/.../TrumpScript/src/trumpscript/utils.py", line 34, in verify_system
    Utils.boycott_apple()
  File "/.../TrumpScript/src/trumpscript/utils.py", line 72, in boycott_apple
    raise Utils.SystemException('boycott');
  File "/.../TrumpScript/src/trumpscript/utils.py", line 21, in __init__
    raise Exception(random.choice(ERROR_CODES[msg_code]))
Exception: Mac? 'Boycott all Apple products  until such time as Apple gives cellphone info to authorities regarding radical Islamic terrorist couple from Cal'

Apple



(This is a country where we speak English)
allowed_words.py
(Trump doesnt want to hear it)




入門 Python 3

入門 Python 3

退屈なことはPythonにやらせよう ―ノンプログラマーにもできる自動化処理プログラミング

退屈なことはPythonにやらせよう ―ノンプログラマーにもできる自動化処理プログラミング

Pythonではじめる機械学習 ―scikit-learnで学ぶ特徴量エンジニアリングと機械学習の基礎

Pythonではじめる機械学習 ―scikit-learnで学ぶ特徴量エンジニアリングと機械学習の基礎



【 ドナルド・トランプ氏に関連する記事 】

tkybpp.hatenablog.com
tkybpp.hatenablog.com
tkybpp.hatenablog.com