summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-01-25 17:52:36 +0800
committerLi Jin <dragon-fly@qq.com>2020-01-25 17:52:36 +0800
commit27717564cb1ab72c88c10a8392b6795ddea7a0ef (patch)
tree3a6d48b516e3fefb81cc140a7bd3bed86bf339e3
parented317e62eb1cf98fde4461fc90c6cb1045ebc7e8 (diff)
downloadyuescript-27717564cb1ab72c88c10a8392b6795ddea7a0ef.tar.gz
yuescript-27717564cb1ab72c88c10a8392b6795ddea7a0ef.tar.bz2
yuescript-27717564cb1ab72c88c10a8392b6795ddea7a0ef.zip
update readme.
-rw-r--r--README.md24
1 files changed, 12 insertions, 12 deletions
diff --git a/README.md b/README.md
index 7421829..7786bc7 100644
--- a/README.md
+++ b/README.md
@@ -47,18 +47,7 @@ if print and (x ~= nil) then
47end 47end
48``` 48```
49 49
50* Can do slash call with Lua keywords. Generate codes from: 50* Add more features for `import` keyword. Will compile codes from:
51```Moonscript
52c.repeat.if\then("xyz")\else res
53```
54&emsp;&emsp;to:
55```Lua
56local _call_3 = c["repeat"]["if"]
57local _call_4 = _call_3["then"](_call_3, "xyz")
58_call_4["else"](_call_4, res)
59```
60
61* Add more usage for `import` keyword. Will compile codes from:
62```Moonscript 51```Moonscript
63import 'module' 52import 'module'
64import "module.part" 53import "module.part"
@@ -79,6 +68,17 @@ do
79end 68end
80``` 69```
81 70
71* Can do slash call with Lua keywords. Generate codes from:
72```Moonscript
73c.repeat.if\then("xyz")\else res
74```
75&emsp;&emsp;to:
76```Lua
77local _call_3 = c["repeat"]["if"]
78local _call_4 = _call_3["then"](_call_3, "xyz")
79_call_4["else"](_call_4, res)
80```
81
82* Add feature of `reusing variable` which helps generate reduced Lua codes. For example, MoonPlus will generate codes from: 82* Add feature of `reusing variable` which helps generate reduced Lua codes. For example, MoonPlus will generate codes from:
83```Moonscript 83```Moonscript
84with leaf 84with leaf