FML, aka Function Manipulation Language, is a programming language created in 2012 by Joe Groff.
#778on PLDB | 12Years Old |
pad = x flip[stitch] 0, stitch 0, flip[cat] 0, cat 0
life = pad, neighborhoods[3 3], [ravel, [sum in?: [x @ 4, + 3; 3]]]/2
[0 1 0 1
0 1 1 0
0 0 1 0
0 0 0 0] replicate[life]-times[5]
###
[0 1 0 1
0 1 1 0
0 0 1 0
0 0 0 0
0 1 0 0
0 1 0 1
0 1 1 0
0 0 0 0
0 0 1 0
1 1 0 0
0 1 1 0
0 0 0 0
0 1 0 0
1 0 0 0
1 1 1 0
0 0 0 0
0 0 0 0
1 0 1 0
1 1 0 0
0 1 0 0]
###
Feature | Supported | Token | Example |
---|---|---|---|
MultiLine Comments | ✓ | ### | ### A comment ### |
Line Comments | ✓ | # | # A comment |
Directives | ✓ | # Directives are special lines that have syntax and semantics of their own. Directives all start with a name of the form .foo; new directives may be added by future versions of the language. .import math.constants area = x * math.constants.Pi, ^ 2 .from math.constants import Pi, E area = x sq, * Pi polar = a * [E ^ [b * 0+j1]] |
|
Comments | ✓ | # This is a line comment ### This is a block comment ### |
|
Semantic Indentation | X |