aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2025-10-13 11:28:47 +0800
committerLi Jin <dragon-fly@qq.com>2025-10-13 11:28:47 +0800
commitaca747dffa1c185c6fc66af4834284e32225751f (patch)
tree183a42e55dfc3d13142cde48d58a05002ec60612 /doc
parent5e566f8cf633882cd153731944cba9f5503cfb0a (diff)
downloadyuescript-main.tar.gz
yuescript-main.tar.bz2
yuescript-main.zip
Fixed docs. [skip CI]HEADmain
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/docs/doc/README.md12
-rwxr-xr-xdoc/docs/zh/doc/README.md12
2 files changed, 12 insertions, 12 deletions
diff --git a/doc/docs/doc/README.md b/doc/docs/doc/README.md
index 5c26dac..ad26be5 100755
--- a/doc/docs/doc/README.md
+++ b/doc/docs/doc/README.md
@@ -223,12 +223,12 @@ Usage: yue [options|files|directories] ...
223 Execute without options to enter REPL, type symbol '$' 223 Execute without options to enter REPL, type symbol '$'
224 in a single line to start/stop multi-line mode 224 in a single line to start/stop multi-line mode
225``` 225```
226&emsp;&emsp;Use cases: 226&emsp;&emsp;Use cases:
227&emsp;&emsp;Recursively compile every YueScript file with extension **.yue** under current path: **yue .** 227&emsp;&emsp;Recursively compile every YueScript file with extension **.yue** under current path: **yue .**
228&emsp;&emsp;Compile and save results to a target path: **yue -t /target/path/ .** 228&emsp;&emsp;Compile and save results to a target path: **yue -t /target/path/ .**
229&emsp;&emsp;Compile and reserve debug info: **yue -l .** 229&emsp;&emsp;Compile and reserve debug info: **yue -l .**
230&emsp;&emsp;Compile and generate minified codes: **yue -m .** 230&emsp;&emsp;Compile and generate minified codes: **yue -m .**
231&emsp;&emsp;Execute raw codes: **yue -e 'print 123'** 231&emsp;&emsp;Execute raw codes: **yue -e 'print 123'**
232&emsp;&emsp;Execute a YueScript file: **yue -e main.yue** 232&emsp;&emsp;Execute a YueScript file: **yue -e main.yue**
233 233
234## Macro 234## Macro
diff --git a/doc/docs/zh/doc/README.md b/doc/docs/zh/doc/README.md
index 29cd032..86796e9 100755
--- a/doc/docs/zh/doc/README.md
+++ b/doc/docs/zh/doc/README.md
@@ -222,12 +222,12 @@ f!
222 不添加任何选项执行命令可以进入REPL模式, 222 不添加任何选项执行命令可以进入REPL模式,
223 在单行输入符号 '$' 并换行后,可以开始或是停止多行输入模式 223 在单行输入符号 '$' 并换行后,可以开始或是停止多行输入模式
224``` 224```
225&emsp;&emsp;使用案例: 225&emsp;&emsp;使用案例:
226&emsp;&emsp;递归编译当前路径下扩展名为 **.yue** 的每个月之脚本文件: **yue .** 226&emsp;&emsp;递归编译当前路径下扩展名为 **.yue** 的每个月之脚本文件: **yue .**
227&emsp;&emsp;编译并将结果保存到目标路径: **yue -t /target/path/ .** 227&emsp;&emsp;编译并将结果保存到目标路径: **yue -t /target/path/ .**
228&emsp;&emsp;编译并保留调试信息: **yue -l .** 228&emsp;&emsp;编译并保留调试信息: **yue -l .**
229&emsp;&emsp;编译并生成压缩代码: **yue -m .** 229&emsp;&emsp;编译并生成压缩代码: **yue -m .**
230&emsp;&emsp;直接执行代码: **yue -e 'print 123'** 230&emsp;&emsp;直接执行代码: **yue -e 'print 123'**
231&emsp;&emsp;执行一个月之脚本文件: **yue -e main.yue** 231&emsp;&emsp;执行一个月之脚本文件: **yue -e main.yue**
232 232
233## 宏 233## 宏