Laws (in the US anyway) are "ambiguous" because they can't be changed very often, so implementing regulations are left to the executive branch, and the judicial branch can edit either one however they feel like anyway and aren't programmers.
And they are updated quite frequently and implemented quite programmatically!
But the laws also remain ambiguous because the world is an ambiguous place with a lot of edge and corner cases with unforeseen knock on effects.
That said, one would hope
1) the tax code would be one of the least open-to-creative-interpretation parts of the system
2) the IRS equivalent could actually produce this code, rather than legislators