diff options
| author | Li Jin <dragon-fly@qq.com> | 2026-02-24 18:01:46 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2026-02-24 18:01:46 +0800 |
| commit | 61bb3f1c6682dcaa05c67b60d3fd0d50e44e0761 (patch) | |
| tree | a52bc64c86ee3bc732740869ebd73083885329fc /doc | |
| parent | 8f3462669e8d536c841d3ce07bfed5432cb379bc (diff) | |
| download | yuescript-61bb3f1c6682dcaa05c67b60d3fd0d50e44e0761.tar.gz yuescript-61bb3f1c6682dcaa05c67b60d3fd0d50e44e0761.tar.bz2 yuescript-61bb3f1c6682dcaa05c67b60d3fd0d50e44e0761.zip | |
Fixed issue #246.v0.33.5
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/docs/doc/advanced/do.md | 2 | ||||
| -rw-r--r-- | doc/yue-de.md | 4 | ||||
| -rw-r--r-- | doc/yue-en.md | 4 | ||||
| -rw-r--r-- | doc/yue-id-id.md | 4 | ||||
| -rw-r--r-- | doc/yue-pt-br.md | 4 | ||||
| -rw-r--r-- | doc/yue-zh.md | 4 |
6 files changed, 15 insertions, 7 deletions
diff --git a/doc/docs/doc/advanced/do.md b/doc/docs/doc/advanced/do.md index 40fd9fe..4bfcc17 100644 --- a/doc/docs/doc/advanced/do.md +++ b/doc/docs/doc/advanced/do.md | |||
| @@ -20,7 +20,7 @@ print var -- nil here | |||
| 20 | 20 | ||
| 21 | </YueDisplay> | 21 | </YueDisplay> |
| 22 | 22 | ||
| 23 | YueScript's **do** can also be used an expression . Allowing you to combine multiple lines into one. The result of the do expression is the last statement in its body. | 23 | YueScript's **do** can also be used an expression. Allowing you to combine multiple lines into one. The result of the do expression is the last statement in its body. |
| 24 | 24 | ||
| 25 | ```yuescript | 25 | ```yuescript |
| 26 | counter = do | 26 | counter = do |
diff --git a/doc/yue-de.md b/doc/yue-de.md index 0db2bfe..aeaabf1 100644 --- a/doc/yue-de.md +++ b/doc/yue-de.md | |||
| @@ -15,6 +15,8 @@ do | |||
| 15 | print var -- nil hier | 15 | print var -- nil hier |
| 16 | ``` | 16 | ``` |
| 17 | 17 | ||
| 18 | YueScripts **do** kann auch als Ausdruck verwendet werden. So kannst du mehrere Zeilen in einem Ausdruck kombinieren. Das Ergebnis des `do`-Ausdrucks ist die letzte Anweisung im Block. | ||
| 19 | |||
| 18 | ```yuescript | 20 | ```yuescript |
| 19 | counter = do | 21 | counter = do |
| 20 | i = 0 | 22 | i = 0 |
| @@ -34,7 +36,7 @@ tbl = { | |||
| 34 | } | 36 | } |
| 35 | ``` | 37 | ``` |
| 36 | 38 | ||
| 37 | YueScripts **do** kann auch als Ausdruck verwendet werden. So kannst du mehrere Zeilen in einem Ausdruck kombinieren. Das Ergebnis des `do`-Ausdrucks ist die letzte Anweisung im Block. `do`-Ausdrücke unterstützen die Verwendung von `break`, um den Kontrollfluss zu unterbrechen und mehrere Rückgabewerte vorzeitig zurückzugeben. | 39 | `do`-Ausdrücke unterstützen die Verwendung von `break`, um den Kontrollfluss zu unterbrechen und mehrere Rückgabewerte vorzeitig zurückzugeben. |
| 38 | 40 | ||
| 39 | ```yuescript | 41 | ```yuescript |
| 40 | status, value = do | 42 | status, value = do |
diff --git a/doc/yue-en.md b/doc/yue-en.md index a82ae9a..2cac78a 100644 --- a/doc/yue-en.md +++ b/doc/yue-en.md | |||
| @@ -15,6 +15,8 @@ do | |||
| 15 | print var -- nil here | 15 | print var -- nil here |
| 16 | ``` | 16 | ``` |
| 17 | 17 | ||
| 18 | YueScript's **do** can also be used an expression. Allowing you to combine multiple lines into one. The result of the do expression is the last statement in its body. | ||
| 19 | |||
| 18 | ```yuescript | 20 | ```yuescript |
| 19 | counter = do | 21 | counter = do |
| 20 | i = 0 | 22 | i = 0 |
| @@ -34,8 +36,6 @@ tbl = { | |||
| 34 | } | 36 | } |
| 35 | ``` | 37 | ``` |
| 36 | 38 | ||
| 37 | YueScript's **do** can also be used an expression . Allowing you to combine multiple lines into one. The result of the do expression is the last statement in its body. | ||
| 38 | |||
| 39 | `do` expressions also support using `break` to interrupt control flow and return multiple values early: | 39 | `do` expressions also support using `break` to interrupt control flow and return multiple values early: |
| 40 | 40 | ||
| 41 | ```yuescript | 41 | ```yuescript |
diff --git a/doc/yue-id-id.md b/doc/yue-id-id.md index d753e20..73bf1bb 100644 --- a/doc/yue-id-id.md +++ b/doc/yue-id-id.md | |||
| @@ -15,6 +15,8 @@ do | |||
| 15 | print var -- nil di sini | 15 | print var -- nil di sini |
| 16 | ``` | 16 | ``` |
| 17 | 17 | ||
| 18 | `do` di YueScript juga bisa digunakan sebagai ekspresi, memungkinkan Anda menggabungkan beberapa baris menjadi satu. Hasil ekspresi `do` adalah pernyataan terakhir di badannya. | ||
| 19 | |||
| 18 | ```yuescript | 20 | ```yuescript |
| 19 | counter = do | 21 | counter = do |
| 20 | i = 0 | 22 | i = 0 |
| @@ -34,7 +36,7 @@ tbl = { | |||
| 34 | } | 36 | } |
| 35 | ``` | 37 | ``` |
| 36 | 38 | ||
| 37 | `do` di YueScript juga bisa digunakan sebagai ekspresi, memungkinkan Anda menggabungkan beberapa baris menjadi satu. Hasil ekspresi `do` adalah pernyataan terakhir di badannya. Ekspresi `do` mendukung penggunaan `break` untuk memutus alur eksekusi dan mengembalikan banyak nilai lebih awal. | 39 | Ekspresi `do` mendukung penggunaan `break` untuk memutus alur eksekusi dan mengembalikan banyak nilai lebih awal. |
| 38 | 40 | ||
| 39 | ```yuescript | 41 | ```yuescript |
| 40 | status, value = do | 42 | status, value = do |
diff --git a/doc/yue-pt-br.md b/doc/yue-pt-br.md index 334e5fc..d48c19b 100644 --- a/doc/yue-pt-br.md +++ b/doc/yue-pt-br.md | |||
| @@ -15,6 +15,8 @@ do | |||
| 15 | print var -- nil aqui | 15 | print var -- nil aqui |
| 16 | ``` | 16 | ``` |
| 17 | 17 | ||
| 18 | O **do** do YueScript também pode ser usado como expressão. Permitindo combinar múltiplas linhas em uma. O resultado da expressão do é a última instrução em seu corpo. | ||
| 19 | |||
| 18 | ```yuescript | 20 | ```yuescript |
| 19 | counter = do | 21 | counter = do |
| 20 | i = 0 | 22 | i = 0 |
| @@ -34,7 +36,7 @@ tbl = { | |||
| 34 | } | 36 | } |
| 35 | ``` | 37 | ``` |
| 36 | 38 | ||
| 37 | O **do** do YueScript também pode ser usado como expressão. Permitindo combinar múltiplas linhas em uma. O resultado da expressão do é a última instrução em seu corpo. Expressões `do` suportam usar `break` para interromper o fluxo de execução e retornar múltiplos valores antecipadamente. | 39 | Expressões `do` suportam usar `break` para interromper o fluxo de execução e retornar múltiplos valores antecipadamente. |
| 38 | 40 | ||
| 39 | ```yuescript | 41 | ```yuescript |
| 40 | status, value = do | 42 | status, value = do |
diff --git a/doc/yue-zh.md b/doc/yue-zh.md index 4585f53..dfc5996 100644 --- a/doc/yue-zh.md +++ b/doc/yue-zh.md | |||
| @@ -15,6 +15,8 @@ do | |||
| 15 | print var -- 这里是nil | 15 | print var -- 这里是nil |
| 16 | ``` | 16 | ``` |
| 17 | 17 | ||
| 18 |   月之脚本的 **do** 也可以用作表达式。允许你将多行代码的处理合并为一个表达式,并将 do 语句代码块的最后一个语句作为表达式返回的结果。 | ||
| 19 | |||
| 18 | ```yuescript | 20 | ```yuescript |
| 19 | counter = do | 21 | counter = do |
| 20 | i = 0 | 22 | i = 0 |
| @@ -34,7 +36,7 @@ tbl = { | |||
| 34 | } | 36 | } |
| 35 | ``` | 37 | ``` |
| 36 | 38 | ||
| 37 |   月之脚本的 **do** 也可以用作表达式。允许你将多行代码的处理合并为一个表达式,并将 do 语句代码块的最后一个语句作为表达式返回的结果。`do` 表达式支持通过 `break` 打断执行流并提前返回多个值。 | 39 |   `do` 表达式支持通过 `break` 打断执行流并提前返回多个值。 |
| 38 | 40 | ||
| 39 | ```yuescript | 41 | ```yuescript |
| 40 | status, value = do | 42 | status, value = do |
