Chanyon

Results 4 comments of Chanyon

``` //enhancement string str = "foo"; char[] ch = str.chars(); //转换为字符数组,可以通过index拿到单个字符 //or string s = str.get(index); ```

``` class Strings { string get(string str,int index) { byte[] bs = toByteArray(str); int idx = index; if(idx >= len(bs)) { return nil; }else { return toString(bs[idx: idx + 1]);...

If there is an EBNF grammar file, it would be better for implementing the tree-sitter parser for the Nature language. ### tree-sitter-nature git: https://github.com/Chanyon/tree-sitter-nature

use `relative path` nature build -o ./fib fib.n