Skip to content

Commit 8b82f88

Browse files
committed
更新README,添加编译运行的步骤说明
1 parent a8c70f9 commit 8b82f88

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
# 编译&运行
2+
#### Linux(Debian)
3+
先安装编译依赖:
4+
5+
sudo apt install qt5-default flex bison g++ make
6+
7+
克隆代码:
8+
9+
git clone https://github.com/zccrs/zScript
10+
11+
12+
编译:
13+
14+
cd zScript
15+
mkdir build && cd build
16+
qmake ..
17+
make
18+
19+
运行:
20+
21+
./zScript ../demo/snake.zs
22+
23+
#### Windows
24+
先安装编译依赖:
25+
26+
到 http://download.qt.io/official_releases/qt/ 下载并安装最新版的Qt
27+
28+
克隆代码:
29+
30+
git clone https://github.com/zccrs/zScript
31+
32+
打开项目并编译,可在“项目” --> “Build&Run” --> “Run” --> “Command line arguments:” 中添加命令行参数来执行要执行的代码文件。
33+
134
# zScript
235
### 变量的定义
336
变量使用关键字“var”进行定义。

0 commit comments

Comments
 (0)