So law is in a way programming?
For most lawyers out drafting contracts, we're still in the days of mainframes. We write code by hand which will probably never be run on a real judge, but we hope we haven't made any bugs.
It would be an interesting project to create an artificial court/judge into which you feed a contract and an argument and get a response out.