A translation of Hamlet's soliloquy in code