diff options
-rw-r--r-- | README.md | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -14,9 +14,15 @@ Yue (月) is the name of moon in Chinese and it's pronounced as [jyɛ]. | |||
14 | 14 | ||
15 | 15 | ||
16 | 16 | ||
17 | ## About Dora SSR | ||
18 | |||
19 | YueScript is being developed and maintained alongside the open-source game engine [Dora SSR](https://github.com/ippclub/Dora-SSR). It has been used to create engine tools, game demos and prototypes, validating its capabilities in real-world scenarios while enhancing the Dora SSR development experience. | ||
20 | |||
21 | |||
22 | |||
17 | ## Features | 23 | ## Features |
18 | 24 | ||
19 | * No other dependencies needed except modified [parserlib](https://github.com/axilmar/parserlib) library from Achilleas Margaritis with some performance enhancement. **lpeg** library is no longer needed. | 25 | * Based on modified [parserlib](https://github.com/axilmar/parserlib) library from Achilleas Margaritis with some performance enhancement. **lpeg** library is no longer needed. |
20 | * Written in C++17. | 26 | * Written in C++17. |
21 | * Support most of the features from MoonScript language. Generate Lua codes in the same way like the original compiler. | 27 | * Support most of the features from MoonScript language. Generate Lua codes in the same way like the original compiler. |
22 | * Reserve line numbers from source file in the compiled Lua codes to help debugging. | 28 | * Reserve line numbers from source file in the compiled Lua codes to help debugging. |
@@ -50,8 +56,7 @@ require("yue")("main") -- require `main.yue` | |||
50 | 56 | ||
51 | local yue = require("yue") | 57 | local yue = require("yue") |
52 | local codes, err, globals = yue.to_lua([[ | 58 | local codes, err, globals = yue.to_lua([[ |
53 | f = -> | 59 | f = -> print "hello world" |
54 | print "hello world" | ||
55 | f! | 60 | f! |
56 | ]],{ | 61 | ]],{ |
57 | implicit_return_root = true, | 62 | implicit_return_root = true, |