Parser for Hamlet