https://github.com/nirvanasupermind/qlang
A concise, procedural programming language
https://github.com/nirvanasupermind/qlang
Last synced: 11 months 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 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-10T01:40:51.000Z (over 4 years ago)
- Last Synced: 2025-07-01T23:03:42.746Z (12 months 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
[](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}
```