Reworked parsing logic to let STDLIB parse attributes and other stuff for us

See subject