pascal.ijs: encapsulate queue in CodeGen