Hatemath

From Esolang
Jump to: navigation, search

About hatemath

hatemath is an esoteric programming language that was created by Saketh Suresh in 2018.The language uses 8 commands, 1 for printing, 3 for telling the type of variable and the other 4 for manipulating the variable.

How it works

Hatemath works with only one variable called X.The 4 commands for the manipulation of X depend on it's type.

Commands

The 8 commands used in hatemath are:

Command Description
[ sets the type of X to a Nonevalue (there are no operations for this type of variable)
< sets the type of X to a character with default value being ' '
> sets the type of X to an integer with default value being 0
+ increments X by 1 if the type of X is an integer
- decrements X by 1 if the type of X is an integer
* moves 1 character forward if the type of X is a character (eg. ' ' -> 'a' -> 'b' and so on)
/ moves 1 character backward if the type of X is a character (eg. 'a' -> ' ' -> 'z' and so on)
] prints the current value of X

To be noted

In hatemath the whole code is written in one line.

Examples

A simple program that prints 6 abb: [>++++++]<]*]*]]

Hello world program: [<********]///]*******]]***]<]////]////////]***]//////]////////]


thats all there is for hatemath

External sources

  • Hatemath implementation in haskell [1]