SaHuTOrEPoL

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.
SaHuTOrEPoL
Paradigm(s) object oriented
Designed by User:MinekPo1
Appeared in 2021
Type system static, weak, hungarian
Memory system variable-based
Dimensions one-dimensional
Computational class Unknown
Reference implementation SaHuTOrEPoLPy
File extension(s) .sah

SaHuTOrEPoL or (Statically Hungarian Typed Object Oriented Esoteric Programing Language, pronounced with a rolled r, often shortened to sah) has been made by User:MinekPo1 to be annoying to write code in.

Overview

Variables

Variables in SaHuTOrEPoL can have between three and eight characters, exactly two of which have to be underscores the rest being either lower-case or upper-case letters.

The first letter in a variable name declares its type.

For example the variable i__a is of type i (which is an integer).

Basic syntax

Line comments start with two dollar signs.

   $$this is a comment
   $$this is also a comment

All instructions must be followed by "do". The instructions are

  • variable declaration (${varname} do)
  • variable assignment ({variable}${expression} do)
  • function declaration (${varname}({arguments separated by commas}) {body} do)
  • type definition ({type}${body} do)
  • import statement (${var or typename}${library} do)