1. A method for automated semantic parsing of an image of a structured document, the method comprising: acquiring the image of the structured document by an image acquiring device; lexing the image of the structured document so as to associate each image element of a plurality of image elements of the image with a predefined token; wherein lexing the image comprises associating an element of the image with a plurality of possible tokens, each association with a possible token being assigned a likelihood value; inputting a user defined template of expected semantically significant elements of the structured document into a parser, the expected elements being defined in a visibly pushdown language (VPL) format; and parsing one or more of the tokens into an element of the expected elements.