Improve error message of the parser.
Cleanup of the pareser code.

All the actions are pushed into parser.F90.