While there is a code-like aspect to reading legalese, the law isn't as specific as a programming language. No matter how hard you try, legal documents will have ambiguity.
I just read a case law week about whether "or" in a patent claim should be interpreted as OR or XOR.