Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/nirvanasupermind/qlang

A concise, procedural programming language
https://github.com/nirvanasupermind/qlang

Last synced: 24 days ago
JSON representation

A concise, procedural programming language

Awesome Lists containing this project

README

        

# Q
[![PyPI version](https://badge.fury.io/py/qlang.svg)](https://badge.fury.io/py/qlang)

NOTICE: This is work in progress

A concise, procedural programming language.

# Installation
To install Q from pip, use the command:

```
$ pip install qlang
```

If you want to use Q from a shell script, navigate to the directory where Q is installed and create a symbolic link:

```
ln -s ./cli.py q
```

# Usage
To use Q from a shell script:

```
$ q # run interactive shell
$ q # run file
```

To use Q using the Python API:

```python
from q import run, run_text

run_text('') # run text
run('') # run file
```

# Example program

## Factorial

```java
F={$0>1?$0*F($0-1):1}
```