Initial commit: Oraset B-5
Build and Package Oraset / build (macos-latest) (push) Waiting to run
Build and Package Oraset / build (ubuntu-latest) (push) Waiting to run
Build and Package Oraset / build (windows-latest) (push) Waiting to run
Build and Package Oraset / release (push) Blocked by required conditions

This commit is contained in:
JGZ_YES
2026-07-23 13:25:11 +08:00
commit 51ece5afed
124 changed files with 35200 additions and 0 deletions
+99
View File
@@ -0,0 +1,99 @@
# 入门指南
本指南将帮助您快速安装和配置 Oraset 编程语言 B-5 版本环境,并运行您的第一个程序。
## 安装 Oraset
### macOS
```bash
curl https://oraset.parlz.com/download/sh/install.sh | bash
```
### Linux
```bash
curl https://oraset.parlz.com/download/sh/install-linux.sh | bash
```
或手动下载 <a href="https://oraset.parlz.com/download/deb/Oraset-B5.deb" download="oraset.deb" >oraset.deb</a>,然后运行:
```bash
sudo dpkg -i oraset.deb
```
### Windows
下载 <a href="https://oraset.parlz.com/download/exe/Oraset-B5.exe" download="oraset.exe" >oraset.exe</a> 并添加到系统 PATH。
## 验证安装
```bash
oraset -v
```
应该显示:"B-5"
## 运行第一个程序
### 步骤 1:创建脚本文件
创建一个名为 `hello.ora` 的文件,内容如下:
```oraset
print("Hello, World!");
```
### 步骤 2:运行脚本
```bash
oraset hello.ora
```
输出:
```
Hello, World!
```
## 交互模式
Oraset B-5 支持 REPL 交互模式:
```bash
oraset -i
```
```bash
oraset --interactive
```
进入交互模式后,您可以直接输入代码并立即看到结果:
```
Oraset B-5 REPL
Type 'exit' or 'quit' to exit.
> var x = 10
> print(x)
10
> exit
```
## 常见问题
### Q: 命令找不到?
A: 确保 oraset 已添加到系统 PATH,并重新打开终端。
### Q: 如何退出交互模式?
A: 输入 `exit``quit` 即可退出。
### Q: 脚本执行完成后自动退出?
A: 是的,脚本执行完成后自动退出,无需手动操作。
---
Oraset Project &copy; 2026