Python 3 Port of Unicat Esoteric Language. This is a fork of https://github.com/gemdude46/unicat
Project description
unicat-esolang
Python 3 Port of Unicat Esoteric Language created by gemdude46. See this Sample Programs in Every Language article for a description of the language.
Prerequisites
Python 3.8 or later
Installing or Updating
This package has no dependencies, so it is safe to do this:
pip install --user -U esocat-lang
However, if you want to install this is in virtualenv, you can do this once you have activated the virtualenv:
pip install -U esocat-lang
Usage
Use this to run your Unicat program:
unicat [-d/--debug] FILENAME
where:
-d
or--debug
enables debuggingFILENAME
is the path to the Unicat program
Debugging
When unicat
is run with -d
or --debug
, the python debugger is entered
before each instruction. The first time, a welcome screen is displayed:
Welcome to the Unicat debugger
Here are the commands:
- show_ins() - Show instructions
- show_mem() - Show all memory
- show_mem(start) - Show memory address `<start>`
- show_mem(start, end) - Show memory address `<start>` to `<end>`
- c - Execute next instruction
Everything else is just a pdb command.
See https://docs.python.org/3/library/pdb.html for details.
When the debugger is entered, the current instruction is displayed. For example:
Current instruction:
Address 0 (0o0): asgnlit 0 (0o0), 72 (0o110 = 'H')
> ...execute_instructions()
-> if it[0] == "diepgrm":
Examples
Example programs can be found here. These programs are also used for unit testing the Unicat language implementation.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file unicat_esolang-0.1.4.tar.gz
.
File metadata
- Download URL: unicat_esolang-0.1.4.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.8.18 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fe5cee31214cb55d6d26184bdb66847932e0d63dbcffa653a37fdf551608f89 |
|
MD5 | 09ac6ce895be097e8dd610f346e11e4d |
|
BLAKE2b-256 | 260c7f2bec2efe6ed9289c21be547ca7f48894280e4533d5369ea48ec0252a0d |
File details
Details for the file unicat_esolang-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: unicat_esolang-0.1.4-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.8.18 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0446491cb0e9724fd03ab8f553b4d134ca1fad2a05454bc3c8a5c0feabec2e52 |
|
MD5 | 582323052b4335f06cd8e04dbdcf68a4 |
|
BLAKE2b-256 | 4e5b2cd90b1249c35aea27b40714880ca3c6dc39928277ce0d8c072afcae9030 |