diff options
| author | Li Jin <dragon-fly@qq.com> | 2026-02-12 10:45:06 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2026-02-12 10:45:06 +0800 |
| commit | 319f49796439e50640cadff1220681a217be98a3 (patch) | |
| tree | d65021d61b64373d5fb3763ba6375faaebaa1e53 /spec/outputs/codes_from_doc_en.lua | |
| parent | d63779ec0a6f00854f53b48b0f6a67707879b6d1 (diff) | |
| download | yuescript-319f49796439e50640cadff1220681a217be98a3.tar.gz yuescript-319f49796439e50640cadff1220681a217be98a3.tar.bz2 yuescript-319f49796439e50640cadff1220681a217be98a3.zip | |
Added the all-in-one doc.
Diffstat (limited to 'spec/outputs/codes_from_doc_en.lua')
| -rw-r--r-- | spec/outputs/codes_from_doc_en.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/spec/outputs/codes_from_doc_en.lua b/spec/outputs/codes_from_doc_en.lua index 4006605..6d822e1 100644 --- a/spec/outputs/codes_from_doc_en.lua +++ b/spec/outputs/codes_from_doc_en.lua | |||
| @@ -2163,6 +2163,18 @@ repeat | |||
| 2163 | result = _with_0.value | 2163 | result = _with_0.value |
| 2164 | break | 2164 | break |
| 2165 | until true | 2165 | until true |
| 2166 | local a | ||
| 2167 | do | ||
| 2168 | local _with_0 = obj | ||
| 2169 | _with_0.x = 1 | ||
| 2170 | a = _with_0 | ||
| 2171 | end | ||
| 2172 | local b | ||
| 2173 | local _with_0 = obj | ||
| 2174 | repeat | ||
| 2175 | b = _with_0.x | ||
| 2176 | break | ||
| 2177 | until true | ||
| 2166 | local create_person | 2178 | local create_person |
| 2167 | create_person = function(name, relatives) | 2179 | create_person = function(name, relatives) |
| 2168 | local _with_0 = Person() | 2180 | local _with_0 = Person() |
| @@ -2209,6 +2221,18 @@ repeat | |||
| 2209 | result = _with_0.value | 2221 | result = _with_0.value |
| 2210 | break | 2222 | break |
| 2211 | until true | 2223 | until true |
| 2224 | local a | ||
| 2225 | do | ||
| 2226 | local _with_0 = obj | ||
| 2227 | _with_0.x = 1 | ||
| 2228 | a = _with_0 | ||
| 2229 | end | ||
| 2230 | local b | ||
| 2231 | local _with_0 = obj | ||
| 2232 | repeat | ||
| 2233 | b = _with_0.x | ||
| 2234 | break | ||
| 2235 | until true | ||
| 2212 | local create_person | 2236 | local create_person |
| 2213 | create_person = function(name, relatives) | 2237 | create_person = function(name, relatives) |
| 2214 | local _with_0 = Person() | 2238 | local _with_0 = Person() |
