User:Pifrited/Lang full of special character

From Esolang
Jump to navigation Jump to search

Lang full of special character is an esolang.

Intro

Lang full of special character is full of special characters.

38 special characters in Lang full of special character
Character Usage Example
+ Plus; Translate string to number 1+1 \2

+'45' \45

- Minus 2-1 \1
± or +- Plus or minus 2±1 \3 or 1
* or × Multiply 2*3 \6
/ Divide 8/4 \2
÷ Divmod 8÷5 \[1, 3]
. Point 0.1
= Equal 1=1 \1
^ Exponent 2^11 \2048
² Shorthand for ^2 114514² \13113456196
< Lower than 1<2 \1
> Greater than 2>1 \1
≤ or <= Equal or lower than 2≤4 \1
≥ or >= Equal or greater than 5≥0 \1
! or ¬ NOT !(1=1) \0
& AND (1)&(3<7) \0
| OR (3<7) \1
≠ or != Not equal 9!=7 \1
\ Reverse
\^ Root 121\^2 \11
% Mod 62%3 \2
@ Any integers 13?{3@+1:$1,:$0} \1
£ Reference the inputs #sign{1£<1:-1,1£=0:$0,:$1}
? Assign the value to the expression behind 27{@^3:$1,:$0}
: Connect the condition and the statements #sign{1£<1:-1,1£=0:$0,:$1}
Assign every character of the number or string to the expression +(123…{:£+1}) \234
~ Range 8?{0~10} \1
|> Nullish coalescing operator (1/0)|>2 \2
Assignment #a

1→a //a=1

Assignment #a←1 \a=1
$ Return; Print $12 \12
{} Expression {1,2,4,5} \Assign number 1,2,4 and 5
, Separate the condition and the statements; Separate list items #sign{1£<1:-1,1£=0:$0,:$1}

[0,1,4,7]

[] List [0,1,3,6]
' or " String 'Hello!'
() Paren
# Declare #a
\ Comments \Ratman room

Also, there are only four variable types:

  • Number
    • Just simple integers and floats.
    • Have order. Index start from “.”(0), then increase(...2,1) or decrease(-1,-2...).
  • String
    • Just string.
    • Have order.
  • List
    • Just list.
    • Have order.
  • Expression
    • Unordered.
    • Use for assigning .
    • Same as set when without statements.

And also,

Defining function:

#Greeting?{$'['Hi, ',1£,''!']'}

Using function:

'Tom'?Greeting
\Hi, Tom!

Examples

Hello, world!

$'Hello, world!'