Newton

From Esolang
Jump to navigation Jump to search

The newton language is simple.
We have an apple.

@

This apple is launched by a tree.

&

And if it passes by a mirror, it is reflected.

_ |
/ \

When it passes by an inc

+

it is incremented.
When it passes by a dec

-

it is decremented.
When it passes by a print

#

it outputs the ASCII of the number stored in it.
When it passes by an in

$

it inputs a value and store in it.

Example Programs

Cat program

/#\
&
\$/