Crop

From Esolang
Jump to navigation Jump to search
This article is no longer maintained by anyone

Crop is a 2D esolang invented by User:None1.

Syntax

=: Starting point, the farmer starts moving here.

<>v^: Barrier, if the farmer attempts to go onto a barrier, it moves back and set the direction as the direction of the barrier.

.: NOP

+: Read a character from standard input, and output the same.

Other: Just print.

The farmer's initial direction is right.

Example Programs

Cat Program:

>=+<

Endless loop:

>=<

Print A infinitely:

>=A<

2D version:

>=Av
A..v
>.A<
<<<<

Crash horribly:

=.

Note that a Crop program never terminates, so it cannot print Hello World.