Wct

From Esolang
Jump to navigation Jump to search

Wct is a impossibly strange number system, which obtains fast and lightweight compiler for building tiny and quick applications in machine code. In other words, this is simple toy for fans of unusual. We believe development must be an enjoyable, creative experience to be truly fulfilling.

Symbols

Here are all the letters of the Wct:

A B C D E F G H I J K L M N P O

Installation

To get Wct Editor from Launchpad PPA, just use following commands:

# apt-add-repository ppa:mihip/wct
# apt-get update
# apt-get install wct

If you are using another Linux distro, you can also use this command:

$ curl -s https://raw.githubusercontent.com/Mihip/Wct/master/src/tools/other/install.sh | sudo bash

Usage

If you use Linux, just copy wcteditor to /usr/bin folder, and you can use Wct Editor with following command:

$ wcteditor <source> [output]

Example:

$ mkdir test
$ cd test
$ wcteditor test.wct output
$ dir
test.wct output
$ ./output

Example

This is small example, it will display martix-like symbols falling. Supports MS-DOS.

Me BM		// загрузка в bx сегментного регистра es	<───────┐
Jo		// загружаем младший байт регистра флагов в AH		│
		//							│
Kl		// в ES:DI кладем элемент из регистра AX		│
		// и изменяем значение регистра di			│
Eh		// увеличиваем регистр di на единицу			│
Eh		// два раза						│
		//							│
Pl OJ		// делаем прыжок на инструкцию Me BM		>───────┘
		// и повторяем все заново

Notes

  • Wct editor has been created on Wct Editor. You can also create programms in machine codes on wct. Only letters, my friend, only letters :)
  • Wct is used in Stapler programming language and practically does not differ from the Hex, but has a more advanced system of writing code.
  • If you need to create application quickly and easily, use other programming languages, such as C++, Python, etc. Wct only created for pampering and aesthetic pleasure.

External resources