suneido-language
Reference for Suneido language syntax and semantics
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Reference for Suneido language syntax and semantics
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | suneido-language |
| description | Reference for Suneido language syntax and semantics |
For more detailed information see the documentation in the suneidoc folder. The standard library source code is in the stdlib folder.
Uncapitalized name are local variables. Capitalized names are global and are only defined in library tables like stdlib. Global name values are constants.
Expressions:
is, isnt, and, or, not instead of ==, !=, &&, ||, !=~ and !~?: ternary operator"Object" is the general purpose container
#(a,b,c)[0] is 'a'Object(1, 2, a: 3, b: 4)anonymous function: function(parameters) { ... }
closure: {|parameters| ... }
return returns from the containing function, not just the closurefunction and closure parameters:
function(a, b, c = 1, d = 2)@var to receive all the arguments into an objectcall arguments:
fn(a, b, c: 3, d: 4):var is shorthand for var: var@object to pass the contents of object as separate argumentscontrol statements: if-else, while, do-while, for, switch
try-catch: try catch (var, prefix) statement
classes:
class : Base
{
X: 123
Add(x) { return x + .X}
}
: Base is optionalclass : Base can be abbreviated to just BaseCallClass methodCallClass that creates an instanceCall method to make instances callableNew method constructorNew methods can call super to specify the arguments.name is shorthand for this.name