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

https://github.com/semperos/glossa-gershwin

Glossa (Gershwin) programming language
https://github.com/semperos/glossa-gershwin

Last synced: 12 months ago
JSON representation

Glossa (Gershwin) programming language

Awesome Lists containing this project

README

          

# Glossa (start of Gershwin)

Clojure + stack-based language.

The easiest way to get started is to clone this repository and run `lein run` at its root. This obviously means you need [Leiningen](https://github.com/technomancy/leiningen) installed first.

```
lein run
```

This will open up a Glossa REPL. Try out the following:

```
glossa.core> 20

--- Data Stack:
20

glossa.core> 22

--- Data Stack:
20
22

glossa.core> : add [] (+ (GlossaStack/popIt) (GlossaStack/popIt)) ;

--- Data Stack:
20
22

glossa.core> add

--- Data Stack:
42

glossa.core> : add-2 [] 2 add ;

--- Data Stack:
42

glossa.core> add-2

--- Data Stack:
44

glossa.core> add-2 add-2

--- Data Stack:
46

glossa.core>
--- Data Stack:
48
```

How about Clojure ratios?

```
glossa.core> 1/3

--- Data Stack:
1/3

glossa.core> 1/4

--- Data Stack:
1/3
1/4

glossa.core> add

--- Data Stack:
7/12
```

## Installation

For now, just clone this repo.

## Usage

Run a REPL:

```
lein run
```

## License

Copyright © 2013 Daniel L. Gregoire (semperos)

Distributed under the Eclipse Public License, the same as Clojure.