migrate the backend and controller to newest interface version
fix wrongly parsed num-like and real-like tokens which should be not a token.
improve error handling and added double declaration check to code