set max_print_depth and pick the right sym_idx

it seems the translation has changed slightly so a couple of
declarations were added before the declaration of lexer symbols, and
that is picked out using a magic number..