WIP: moved tag regognition before expand phase (still broken) and wrote an AST pretty printer (also broken).
Fixed AST printer.
Fixed tag handling.
Fixed AST printer.