Convert

From Esolang
Jump to navigation Jump to search
The title of this article is not correct because of technical limitations. The correct title is actually ->.

-> is an esolang by the user AdjectiveNounNumber (me!). It was created in Jan, 8, 1:31 ET. Every variable, function, and/or value can be converted, or redirected to another value using a convert arrow (->). All values start undefined except the components. May or may not be turing complete.

Componets

Component Summarys.
Symbol Syntax
-> Converts / Redirects the value to the left to the value to the right.
$input Displays the input.
?input Converts the input into the user input.
[ ] Does not allow any values to be proccessed or converted inside.
( ) Stops conversion arrows.

-> (Conversion Arrow)

The conversion arrow is one of the most crucial parts of this programming language. This converts or redirects the value to the left to the value to the right. The arrow will search for values on the left and right and keep searching until it hits blockers or the end of its line. The value on the left and right also ignore spaces and deactivators. The conversion arrow is formatted as name -> redirect or (name -> redirect). The conversion arrow does not convert anything in its own line, but it can convert other conversion lines.

[ ] (Deactivators)

The deactivators do not allow any values to be proccessed or converted inside. The deactivators are formatted as [ input ].

( ) (Blockers)

The blockers stop conversion values from expanding too much. It can also be used to stop converters from converting the value inside. The blockers are formatted as ( input ).

? (Inputter)

The inputter gets user input and converts the value inside into the user input. The inputter searches to the value right of them until it reaches blockers or the end of the line. Ignores spaces and deactivaters. ===$ (Outputter) The outputter displays the characters. It searches for characters until it hits blockers or the end of its line. Ignores deactivators but not spaces.

Examples

Truth Machine

?( [input] )
input -> $inputinput
$00 -> $0
input

cat

?input
$input

incrementing by 4 thing

?input
x -> 99
(9ic -> ic0)(8ic -> 9)(7ic -> 8)(6ic -> 7)(5ic -> 6)(4ic -> 5)(3in -> 4)(2in -> 3)(1in -> 2)(0in -> 1)
$inputicicicic

Interpreter

This language does not have an interpreter yet, meaning the results are made by hand. If any of this code is wrong, please tell me :)