Pattern
Jump to navigation
Jump to search
Pattern is an esolang created by User:A that is inspired by English grammar word describers.
Describers
x after y indicates that the following syntax must be fullfilled: The active item is y, and it is moving left towards x. This stops when y is right after the atom x. x also y means that both x and y needs to be fullfilled. If trying to do both fails, only x is fullfilled. x before y means that the active item was y, and it is moving right towards x. This stops when y is right before x. no x means that execute x until the syntax is not fullfilled anymore. x with y means that y needs to be right before OR right after the atom x. y is moving left.
Example
2 with 1 3 after 2 1 with 3
Note that instructions in Pattern execute cyclically. Given an input 312 this does:
312 2 w/ 1 -> *nothing* 3 a. 2 -> 123 1 w/ 3 -> 132 2 w/ 1 -> 321 3 a. 2 -> 213 -> 231 1 w/ 3 -> *nothing* and so on...