These routines have a regular signature and are used to build a table of
function pointers for fast dispatch. However, the previous approach
relied on lambdas to build these functions which resulted in very hard
to read functions in the profile and backtrace.
In preparation for expanding dispatch to handle (many) more cases in the
lexer and also enabling more aggressive inlining into the dispatch
routines, I wanted to tidy up how they appear.
This PR alone shouldn't have any interesting functional effect, it's
just re-organizing the code.
Co-authored-by: Richard Smith <richard@metafoo.co.uk>