Li Jin
Li Jin
是为了在不patch Lua源码的环境下能运行Yuescript写的带unicode标识符的代码,毕竟不是所有Lua的运行环境都能patch到源码。也是借鉴一个叫Fennel转译到Lua的语言编译器的处理方式来的。
It is a brilliant idea! And it seems the TypescriptToLua compiler is doing similar optimizations too. Just tried implementing this feature. And I encountered a few more issues during coding....
The test cases can be found here. https://github.com/pigpigyyy/Yuescript/blob/main/spec/inputs/upvalue_func.yue https://github.com/pigpigyyy/Yuescript/blob/main/spec/outputs/upvalue_func.lua
The `in` operator is useful to make many comparing expressions simpler, but I'm not getting the use for operator function with partial application, it won't be hard to write functions...
Added a new option -r to the compiler to generate Lua codes with corresponding line to the original Yuescript codes. ```sh > yue -r test.yue ``` Will now compile the...
> @pigpigyyy it would be nice to have same option for `yue` lua module. The current line mapping function is done with a lib named luaminify, and I modified the...
If you have the `yue` module available in Lua. You don't need 'luaminify' lib to do line mapping. You can use `yue.traceback()` to get debugging info with transformed line numbers....
Thank you for the time you've spent on this project! 1. I have ever thought of implementing the assignment expression syntax in the [Python way](https://peps.python.org/pep-0572/), and many cases should be...
The 'const' and 'close' labels are not treated as keywords in Yue for the moment. So you are getting this 'weird' compiling result. And there might be some more rules...
Implementing this feature won't be a problem. But I'm thinking of making function params const by default that can be more helpful according to my coding experiences. And I'm expecting...