diff options
author | Li Jin <dragon-fly@qq.com> | 2021-03-08 21:02:05 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2021-03-08 21:02:05 +0800 |
commit | 8acb48264d3ae87e5cdae2fea4207be22cf08a97 (patch) | |
tree | 8f260c52388be52c9fd1b5b9d262300b21771ca8 /spec/inputs/destructure.yue | |
parent | 34326185b0aaf63c0af8b0e8a07f928aa5a74eaf (diff) | |
download | yuescript-8acb48264d3ae87e5cdae2fea4207be22cf08a97.tar.gz yuescript-8acb48264d3ae87e5cdae2fea4207be22cf08a97.tar.bz2 yuescript-8acb48264d3ae87e5cdae2fea4207be22cf08a97.zip |
add new syntax for issue #41. fix a issue for destructure syntax with TableBlock. try fix luarocks installing problem again for issue #42.
Diffstat (limited to 'spec/inputs/destructure.yue')
-rw-r--r-- | spec/inputs/destructure.yue | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/spec/inputs/destructure.yue b/spec/inputs/destructure.yue index 6b52441..c68045d 100644 --- a/spec/inputs/destructure.yue +++ b/spec/inputs/destructure.yue | |||
@@ -41,7 +41,28 @@ do | |||
41 | "Bellagio, Italy 22021" | 41 | "Bellagio, Italy 22021" |
42 | } | 42 | } |
43 | 43 | ||
44 | {poet: {:name, address: {street, city}}} = futurists | 44 | do {poet: {:name, address: {street, city}}} = futurists |
45 | |||
46 | do { | ||
47 | :sculptor | ||
48 | :painter | ||
49 | poet: | ||
50 | :name | ||
51 | address: | ||
52 | * street | ||
53 | * city | ||
54 | } = futurists | ||
55 | |||
56 | do | ||
57 | a: | ||
58 | b: c | ||
59 | d: e = tb | ||
60 | |||
61 | do | ||
62 | a: | ||
63 | * b: c | ||
64 | * d: e | ||
65 | * f = tb | ||
45 | 66 | ||
46 | -- | 67 | -- |
47 | 68 | ||