Changing "$type" to match what's in Lexer.x--"$ty"