Fork Me on GitHub

Semicolon

a language of semicolons

Download this project as a .zip file Download this project as a tar.gz file

An esoteric language made up of only semicolons.

You can't escape the semicolon monster!

Installation

Install semicolon globally from npm registry by typing the following command

npm install semicolon -g

Usage

Usage: semicolon [FILE]

The following program consists semicolons, reversed semicolons, spaces and newlines which when ran

;;;;⁏;;⁏;;;
⁏ ;;;;;;⁏⁏;;⁏;⁏
⁏ ;;;;;;⁏⁏;⁏⁏;;
;;⁏⁏ ;;⁏ ;;;;;;⁏⁏;⁏⁏⁏⁏
⁏ ;;;;;;⁏;;;;;
⁏ ;;;;;;⁏⁏⁏;⁏⁏⁏
⁏ ;;;;;;⁏⁏;⁏⁏⁏⁏
;;⁏⁏ ;;;;;;⁏⁏
⁏;;⁏ ;;;;;;⁏⁏;⁏⁏;;
⁏ ;;;;;;⁏⁏;;⁏;;
⁏ ;;;;;;⁏;;;;⁏
⁏ ;;;;;;;⁏;⁏;
⁏ ;;  ;

gives the following output

Hello world!

Instructions

The virtual machine on which programs run has a stack and a heap. The programmer is free to push arbitrary width integers onto the stack (only integers, currently there is no implementation of floating point or real numbers). The heap can also be accessed by the user as a permanent store of variables and data structures.

Many commands require numbers or labels as parameters. Numbers can be any number of bits wide, and are simply represented as a series of ; and , terminated by a \n. ; represents the binary digit 0, represents 1. The sign of a number is given by its first character, ; for positive and for negative. Note that this is not twos complement, it just indicates a sign.

Labels are simply \n terminated lists of ; and . There is only one global namespace so all labels must be unique.

Stack manipulation

All stack manipulations start with ; and followed by

Arithmetic operation

All arithmetic operations start with and followed by

Heap access

All heap storage access start with and followed by

Input/Output

All Input/Output operations start with ⁏  and followed by

Flow control

All flow controls start with   and followed by

Contact

Pavan Kumar Sunkara (pavan.sss1991@gmail.com)

Follow me on github, twitter