Wall parsing and matching