Pascal and lattice code