Clean split between loader, parser and pretty-printer.
Add constant folding.