An esolang written in Python
Project description
Qualm
Qualm is an esolang, which uses a cell-based memory model.
Installation
You can install Qualm from PyPi: python3 -m pip install --user qualm
Or clone the repository:
$ git clone https://github.com/wilfreddv/qualm.git
$ cd qualm
$ python3 -m pip install --user .
Documentation
Data operations:
|<delimiter> split string on delimiter
@ index of, e.g.: "'apples pears bananas:@'apples
$ indexing
i turn into integer
c turn into character (chr())
o turn into ascii value (ord())
. read from STDIN
! write to STDOUT
w working cell
s<number> swap <number> var with w
><number> push w to <number>
<<number> pop <number> to w
<operation>><number> write output of previous operation to <number>
<number> can also be `w`, like sw
v<data> put data in w
'...: string data
{<condition>{...} loop
<number>+<number> add
<number>-<number> sub
<number>*<number> mul
<number>/<number> div
<number>%<number> mod
<number>=<number> equals
<expr>!=<expr> neq
<expr><=<expr> smaller
<expr>>=<expr> bigger
Examples
Hello world
Hello world:
v'Hello World!:!
v write into working cell
' denotes string data
! prints
Fibonacci sequence
v2>0v1>1{s1<=23416728348467685{!iv' :!<1+<0s0}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
qualm-1.1.2.tar.gz
(5.4 kB
view details)
File details
Details for the file qualm-1.1.2.tar.gz.
File metadata
- Download URL: qualm-1.1.2.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb598069c1c401607aea9d2cdad486d511ee7ac90e2216428a908658c2aef6c4
|
|
| MD5 |
738a6735ae479486c662663897c702c6
|
|
| BLAKE2b-256 |
1aa126499fe385264aa43720a2fc4134d791334f877b0e6a79d521ae7cc279de
|