-
```
switch 1 {} * switch 2 {}
^ Unexpected '*' (line 1, position 13)
```
It works when I parenthesize the first expression:
```
(switch 1 {}) * switch 2 {}
```
-
建议加入Bark来推送告警通知。
项目地址:https://github.com/Finb/Bark
-
The following example doesn't compile.
https://github.com/rhaiscript/book/blob/dc74fc9f6f3d74e69e6615b113a3fdd801b0329f/src/rust/getters-setters.md?plain=1#L63-L103
In `new` `.to_string()` is mi…
-
Is there a particular purpose of writing the functions in Rhai script?
Otherwise, this package would really be a very useful one for many people...
But having to run scripts for every function w…
-
We currently support one export item per export statement, but the Rhai book has examples for comma separated exports.
-
Hey,
I found the "goto" is a reserved keyword in rhai.
https://rhai.rs/book/appendix/keywords.html?highlight=goto#reserved-keywords
So, is it possible to utilize it? I cannot find any example to h…
-
I pulled in the rhai engine in order to test the compliance of the parser (and later the HIR), but [`Engine::compile(...)`](https://github.com/rhaiscript/lsp/blob/57c93aac3209dd1b91b81e8b20478d0ad361c…
-
Putting this in the maybe pile.
Pro of Rhai? Expression only mode and a simpler context model
https://rhai.rs/book/engine/expressions.html
As we'd only be using expressions, the user facing A…
-
Hey,
I tried to use Scope to delivery instance of a structure to Rhai. It works very well. I also want to get the instance from Rhai to rust. I found two ways:
1. Make a clone of the instance usin…
-
Hey,
I found that I cannot print ${x} message from rhai correctly. I designed many cases using the following case.
#[cfg(test)]
mod tests {
use rhai::{Engine, EvalAltResult};
#[test…