Parse memory references.