Initial commit: Oraset programming language with documentation
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// 测试.oraset文件
|
||||
show(`Hello from .oraset file!`);
|
||||
|
||||
// 变量定义
|
||||
x = 10;
|
||||
y = 20;
|
||||
sum = x + y;
|
||||
show(`10 + 20 = `, sum);
|
||||
|
||||
// 函数定义
|
||||
def add(a, b) {
|
||||
return a + b;
|
||||
}
|
||||
|
||||
// 函数调用
|
||||
result = add(5, 6);
|
||||
show(`5 + 6 = `, result);
|
||||
Reference in New Issue
Block a user