The cookbook[0] has some good examples, I went with the state machine parser
as a base for highlighting in mpv's console (mpv scripting has been the main focus of my fennel use, mostly rewriting existing code)
[0] https://github.com/bakpakin/Fennel/wiki/Cookbook