parser: finish stmts.
parser: major refactor, started type parser.