After

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

After is a programming language made by Username (talk).

Introduction

After is a cell & stack programming language, however, in After, you can only store integers in cells, and characters in stacks.

Syntax

Cmd Description
+ Gets the left value and the right value of the "+" and adds both of them before pushing it into the stack.
- Gets the left value and the right value of the "-" and subtracts both of them before pushing it into the stack.
/ Gets the left value and the right value of the "/" and divides both of them before pushing it into the stack.
* Gets the left value and the right value of the "*" and multiplies both of them before pushing it into the stack.
% Gets the left value and the right value of the "+" and mods both of them before pushing it into the stack.
o The pointer starts here.
> The pointer will travel right.
< The pointer will travel left.
v The pointer will travel down.
^ The pointer will travel up.
r Reverses the contents of the stack.
. Prints the character processed after the .. Code is ignored while . is running.
? The pointer will travel in random directions.
: Duplicates the top value and pushes it into the stack.
; Duplicates the bottom value and pushes it into the stack.
0-9 Pushes 0-9 into the stack.
$ Deletes the top value of the stack.
_ Deletes the bottom value of the stack.
{ } Sets the value of pointer to anything inside of the { }. Default value is set to 0.
#() Index of stack.
##() Index of cell.
### Comment.
= Set to.
== Is equal to.
, Less than.
' Greater than.
r() Replaces index/#() or ##() with anything inside ()
dIO() Duplicates the index of stack or cell with anything inside ()
cS Set all stack values to 0.
cC Set all cell values to 0
nD(a=1, b=2, c=3) Adds a new dictionary, when converting from stack to cell using c#()p.
c#()p Converts stack index to a cell integer using nD().
& Ends program.