Parliamentary democracy's source code

Over on the Making Light blog, a discussion of the odd corners of Canadian Parliamentary rules has spiralled into a full-blown attempt to express Westminster-derived Parliamentary democracy in pseudo-code. Will it compile?

All this because Canada's opposition parties have gotten together to oust the ruling Tory party, in a massive, brawling political dogfight that includes everything from wiretapping to stump-speeches.

if (country() == UK )
LDQN = HM
elseif
( member(@COMMONWEALTH_DOMINIONS,country())
and location(HM) == $HERE )
LDQN = HM
else
LDQN = GG;

A different kind of "political science"