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