Brainf with functions

From Esolang
Jump to navigation Jump to search

BF commands are same, but I added two.

:

This defines a function. The symbol before it is the command that calls the function anywhere after the function, and ; closes it.

Examples

Cat

n:,.;+[n]

HIWORLD

o:++++++++;j:[-];c:[<+>-]<;f:++++++[>o++<-]>c;f>f>f>f>f>f>f<<<<<<++.>+++.>oo+.>o+.>o++++.>++++++.>--.