There's a difference between regulations, laws and constitutional principles -- which in my view, shouldn't really be regarded as laws at all.
At highest fidelity, and least ambiguity, is a regulation since it applies to a highly specific context, and seeks to regulate relatively easy to name and describe practices. The audience for a regulation is typically a regulator, ie., a part of the government. Regulations quantity over a finite number of institutions/bodies/practices which are generally identifiable explicitly at the time, even if the law is written more broadly.
Many socially inadept engineering types assume either all law should be like regulation, but this would be tyranny, since you cannot easily enumerate or describe the vast majority of scenarios "of legal concern", and the attempt reduces social interaction down to the worst sort of prescribed interactions.
The audience for ordinary laws is judges (and somewhat, the police) -- to guide their decision-making when interpreting an unenumerable social scenario "of legal concern". These nevertheless concern scenarios with describable features, and its generally clear at least when they apply. These "general laws" quantify over an infinite number of possible "similar scenarios" whose similarity is giving by legal precedent and developed traditions of intepretation.
Finally constitutional principles, in being "one sentence" are nothing really like laws at all. In my view their audience is a very strange sort of judge who is much closer to a moral philosopher. These principles are so radically underspecified that they can apply to almost any scenario relative to some philosophical framework.
The purpose of constitutional principles is to limit the government under very broad ethical guidelines. So the audience there is the government, broadly. They exist to deter excessively immoral government action.
As you can see each of these has radically different purposes and audiences, and none make any sense as anything like a programming language -- nor are they anything like each other.