https://github.com/mystpi/orca
The Orca programming language
https://github.com/mystpi/orca
Last synced: 25 days ago
JSON representation
The Orca programming language
- Host: GitHub
- URL: https://github.com/mystpi/orca
- Owner: MystPi
- License: mit
- Created: 2022-01-16T20:19:42.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-20T19:24:07.000Z (about 4 years ago)
- Last Synced: 2025-02-12T17:50:10.380Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://mystpi.github.io/orca
- Size: 20.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# The Orca Programming Language
Orca (*Egg* from the book *Eloquent JavaScript*) is a simple programming language that supports functions, closures, and more.
```orca
do(
print("Hello, world!"),
define(pswd, input("What is the password? ")),
if (==(pswd, "0rc4"),
print("Welcome!"),
print("Try again.")
)
)
```
```orca
do(
define(factorial, n,
if(<=(n, 1),
1,
*(n, -(n, 1))
)
),
print(factorial(4)) # 24
)
```
## Online Orca Editor
You can write and save Orca programs with syntax highlighting at https://mystpi.github.io/orca.
## Installation
Orca can be installed via `npm`.
```bash
npm install -g orcalang
```
## Usage
```bash
orca
```
## Documentation
Coming soon.