TrumpScriptをWindows 10 32-bit+Cygwinで動かしてみた

tkybpp.hatenablog.com
github.com
これをみてとりあえずやってみた。
が、私のWindows 10は32-bitだ。Ubuntu Subsetなんぞないよ(64bit専用)
From the Canyon Edge: HOWTO: Ubuntu on Windows
そんなこんなでCygwinインストール。初めて使ってからもうすぐ20年経つのかな。
Cygwin Installation
インストール時にInterpretersでPython3を選んでおくとそのまま動かせます。
Cygwin.batを実行。

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

githubのexampleをTrumScriptディレクトリ配下にfire.trで保存し、

$ TrumpScript/bin/TRUMP TrumpScript/fire.tr
/src/trumpscript/main.py': [Errno 2] No such file or directory

あるぇ。。。bin/TRUMP生だし

$ python3 -- "/home/xxx/TrumpScript/src/trumpscript/main.py" "/home/xxx/TrumpScript/fire.tr"
Traceback (most recent call last):
File "/home/xxx/TrumpScript/src/trumpscript/main.py", line 5, in
from trumpscript.compiler import *
ImportError: No module named 'trumpscript'

お、おう...sys.path追加

$ vi TrumpScript/src/trumpscript/main.py
sys.path.append('/home/xxx/TrumpScript/src')

実行。

$ python3 -- "/home/xxx/TrumpScript/src/trumpscript/main.py" "/home/xxx/TrumpScript/fire.tr"
WARNING: SSL certificate `CNNIC ROOT` (serial: 49330001) was made by commies!
WARNING: SSL certificate `CA WoSign ECC Root` (serial: 684A5870806BF08F02FAF6DEE8B09090) was made by commies!
WARNING: SSL certificate `CA 沃通根证书` (serial: 50706BCDD813FC1B4E3B3372D211488D) was made by commies!
WARNING: SSL certificate `Certification Authority of WoSign` (serial: 5E68D61171946350560068F33EC9C591) was made by commies!
WARNING: SSL certificate `CFCA EV ROOT` (serial: 184ACCD6) was made by commies!
WARNING: SSL certificate `Certification Authority of WoSign G2` (serial: 6B25DA8A889D7CBC0F05B3B17A614544) was made by commies!
WARNING: SSL certificate `China Internet Network Information Center EV Certificates Root` (serial: 489F0001) was made by commies!
▒A▒N▒Z▒X▒▒▒▒▒ۂ▒▒▒܂▒▒▒▒B▒I▒v▒V▒▒▒▒ -c ▒ɂ͊Ǘ▒▒ғ▒▒▒▒▒▒K▒v▒ł▒▒B
▒A▒N▒Z▒X▒▒▒▒▒ۂ▒▒▒܂▒▒▒▒B▒I▒v▒V▒▒▒▒ -c ▒ɂ͊Ǘ▒▒ғ▒▒▒▒▒▒K▒v▒ł▒▒B
hello world
trump for president

なんかいろいろとWARNINGSと謎の文字列が表示されたけどとりあえず実行できました。