An open API service indexing awesome lists of open source software.

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

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.