Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nirvanasupermind/qlang
- Owner: nirvanasupermind
- License: mit
- Created: 2021-10-09T00:16:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-10T01:40:51.000Z (over 3 years ago)
- Last Synced: 2024-12-17T14:43:56.147Z (about 1 month ago)
- Language: Python
- Size: 139 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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_textrun_text('') # run text
run('') # run file
```# Example program
## Factorial
```java
F={$0>1?$0*F($0-1):1}
```