Li Jin

Results 161 comments of Li Jin

```moonscript -- Still feeling the current implementation could be more consistent. -- The old syntax is a rare case, and not to be of much uses. So I think removing...

Currently code `{key: value}` is the same with `key: value`. So I prefer that `{close#: =>}` and `close#: =>` could be the same thing. Key name ends with '#' symbol...

The problem is ```moonscript macro PRINT = (var) -> { code: "print(#{var})" type: "lua" } $PRINT "Hello, world!" ``` With the default compiler option `implicit_return_root = true`. It is treated...

https://github.com/pigpigyyy/Dorothy-SSR/blob/fb4cfbe08612a4067621690510a9e9a0a74b6ba9/Source/Basic/Content.cpp#L222-L226 前面几行已经return fullPath了,如果fullPath为空就返回传入的值。

抱歉,这个接口我没有做测试,这个原来模版接口的写法是不可用的……至少得改成这样你才能正常调用。 ```cpp template class OwnVector : public std::vector { typedef std::vector OwnV; public: using OwnV::OwnV; using OwnV::insert; bool remove(const Own& item) { auto it = std::remove(OwnV::begin(), OwnV::end(), item); if (it...

Just took a look for tree-sitter and went over the tutorial, didn't find a tree-sitter grammar, instead found a tree-sitter DSL written in Javascript to generate a C implemented parser....

And to implement Yuescript syntax, the tree-sitter DSL itself is not sufficient. We need to learn from the tree-sitter Python project for implementing the indent and dedent functions using tree-sitter...

Take it easy, it is the way an open source project could be. Since it's MIT Licensed, it is not an obligation for the author to maintain this software. I'm...

Replace `Break` with `SpaceBreak` in `parse.moon` line 148, fixes this error. ```Moonscript -- change SwitchBlock: EmptyLine^0 * Advance * Ct(SwitchCase * (Break^1 * SwitchCase)^0 * (Break^1 * SwitchElse)^-1) * PopIndent...

```moonscript i = 11 (-> local i i = 10 i)! ```