Scala trait parsing. WIP.