easylang
1.0.0
EasyLang是一種簡單的開源編程語言,具有內置的圖形功能和用戶友好的瀏覽器IDE,也可以離線使用。它的開發是為了使學習以盡可能容易且易於訪問。您還可以使用EasyLang編寫可以嵌入網頁中的簡單圖形程序。
# animate a pendulum
ang = 45
on animate
clear
move 50 50
circle 1
x = 50 + 40 * sin ang
y = 50 + 40 * cos ang
line x y
circle 6
vel += sin ang / 5
ang += vel
end
easylang.online
chkas.github.io
MacOS:XCode命令行工具
JDK,Emscripten
下載Emscripten WASM SDK並安裝它
curl -L https://github.com/emscripten-core/emsdk/archive/refs/heads/main.zip -o main.zip
unzip -q main.zip
mv emsdk-main emsdk
安裝並激活測試版本
source emsdk/emsdk_env.sh
emsdk update ; emsdk list
# vers=latest
vers=3.1.70
emsdk install $vers ; emsdk activate $vers
curl -L https://github.com/chkas/easylang/archive/refs/heads/main.zip -o main.zip
unzip -q main.zip
mv easylang-main easylang
目標文件夾是〜/out/easylang。需要Java進行關閉兼職器。
source emsdk/emsdk_env.sh
( cd easylang/main ; make )
在本地測試
(cd ~/out/easylang/;python3 -m http.server)
Local主機:8000/IDE/
github.com/chkas/chkas.github.io
easylang/native/readme.md