Refactor TokenParser
This patch replaces the if/else chain in the string->token parsing with a data structure where looking up and adding new tokens is easier and (hopefully) more efficient.
As a side effect it also fixes
- base 2/8/16 prefixes would count towards the digit limit
Edited by Johannes Schiller