Manual:Operators:Operators That Apply Functions To Results:>

>>> from lepl import *
>>> def star_show(x):
...     print("*", x, "*")
...     return x
...
>>> (Literal('a') > star_show).parse('abc')
* ['a'] *
[['a']]
>>> (Literal('a') >= star_show).parse('abc')
* ['a'] *
['a']
>>> ((Literal('a') & 'b') > star_show).parse('abc')
* ['a', 'b'] *
[['a', 'b']]
>>> ((Literal('a') & 'b') >= star_show).parse('abc')
* ['a', 'b'] *
['a', 'b']