The def is where colm really shines. A def is somewhere between a struct and a regular expression. Again one example is much more clearer.

assign.lm

After the compilation we can pipe some input to it’s stdin.

This gives us:

b->3
a->1
c->2
Note this also illustrates how to read from stdin.