Initial commit: Oraset programming language with documentation
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// 测试错误显示功能
|
||||
|
||||
// 语法错误:缺少分号
|
||||
x = 10
|
||||
|
||||
// 运行时错误:调用不存在的函数
|
||||
unknown_function();
|
||||
|
||||
// 语法错误:括号不匹配
|
||||
if (x > 5 {
|
||||
show(`x is greater than 5`);
|
||||
}
|
||||
Reference in New Issue
Block a user