suneido-language
Reference for Suneido language syntax and semantics
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Reference for Suneido language syntax and semantics
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional 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