!

From Esolang
Jump to navigation Jump to search

! (pronounced 'not') is an esoteric language made by User:PersonMan.

initializing a ! program is simple.

!- *initializes the program
-! *ends the program

printing "hello world!" in ! looks like this:

!-
#_hello world!
-!

using the octothorpe to print a value

data types:

Symbol Type
_ string
$ number
! boolean

Variables

declaring variables in ! is pretty simple:

  1. data type
  2. name
  3. question mark
  4. value

example

!-
_hello ? Hello world!
#_hello
-!

will print out "Hello world!"

Boolean variables

booleans aren't True/False but instead are: !!/!

example:

!-
!bool ? !
#!bool
#_/n
!bool ? !!
#!bool
-!

will print out:

0
1

Addition with strings and numbers

adding numbers will look as you'd expect

!-
$num1 ? 2
$num2 ? 5
#$ $num1 + $num2
-!

will display:

7

as you'd expect.

but adding strings is a bit harder

!-
_stringa ? hello
_stringb ? world!
#_ _stringa + _  + _stringb
-!

will display "hello world!" after so much esoCode in !