下载
xlang DEMO6 完整包
xl.exe + xl.dll + xlc.dll + examples + 文档
包含编译器/运行器、嵌入式运行 DLL、153 个范例程序和完整测试用例。
下载 ZIP安装与验证
解压并验证
# 解压下载的 ZIP cd xlang_new # 运行你的第一个程序 xl.exe run examples\hello.xl # 编译为 exe xl.exe build examples\hello.xl -o hello.exe hello.exe
从源码构建
Windows 一键构建
git clone https://gitee.com/xywhsoft/x-lang.git cd x-lang/demo6 # 构建 xl.exe + xl.dll + xlc.dll build.bat # 运行回归测试 test.bat
产物说明
xl.exe
编译器/运行器。支持 lex/parse/check/ir/cgen/abi/run/build/impdef 全阶段命令。
xl.dll
轻量嵌入式运行 DLL,76 个公开 C API(xl.h 43 + xlc.h 33),零外部依赖。
xlc.dll
带完整 TCC 编译资源的嵌入式 DLL,支持脚本编译到 exe。
examples/
153 个范例程序,覆盖所有语言特性。