From 27717564cb1ab72c88c10a8392b6795ddea7a0ef Mon Sep 17 00:00:00 2001 From: Li Jin Date: Sat, 25 Jan 2020 17:52:36 +0800 Subject: update readme. --- README.md | 24 ++++++++++++------------ 1 file 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 end ``` -* Can do slash call with Lua keywords. Generate codes from: -```Moonscript -c.repeat.if\then("xyz")\else res -``` -  to: -```Lua -local _call_3 = c["repeat"]["if"] -local _call_4 = _call_3["then"](_call_3, "xyz") -_call_4["else"](_call_4, res) -``` - -* Add more usage for `import` keyword. Will compile codes from: +* Add more features for `import` keyword. Will compile codes from: ```Moonscript import 'module' import "module.part" @@ -79,6 +68,17 @@ do end ``` +* Can do slash call with Lua keywords. Generate codes from: +```Moonscript +c.repeat.if\then("xyz")\else res +``` +  to: +```Lua +local _call_3 = c["repeat"]["if"] +local _call_4 = _call_3["then"](_call_3, "xyz") +_call_4["else"](_call_4, res) +``` + * Add feature of `reusing variable` which helps generate reduced Lua codes. For example, MoonPlus will generate codes from: ```Moonscript with leaf -- cgit v1.2.3-55-g6feb