Initial commit: Oraset programming language with documentation

This commit is contained in:
JGZSunShineMod1.0.3
2026-04-24 21:54:58 +08:00
commit 2089d28529
131 changed files with 28968 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
!! 测试input和arr语法
!! 测试arr数组语法
show(`=== Testing arr() ===`);
arr1 = arr(`apple`, `banana`, `cherry`);
show(`Created array: `, arr1);
show(`Array length: `, len(arr1));
!! 测试数组操作
arr1 = push(arr1, `date`);
show(`After push('date'): `, arr1);
arr1 = pop(arr1);
show(`After pop(): `, arr1);
show(`indexOf('banana'): `, indexOf(arr1, `banana`));
!! 测试input语法(带提示)
show(`\n=== Testing input() ===`);
show(`Please enter your name:`);
name = input(`Name: `);
show(`Hello, `, name, `!`);