snip&snap extracts from our major JISON grammar file, showcasing 'code sections' a la BISON plus a few other bits & tricks.
Note the %{ ... %} sections which are JISON's 'code sections'.
Also note the code following that last '%%' marker: that is another 'code section' - and the most important one.