Patent ID: 8387029

Claim:
A non-transitory computer-readable medium storing computer-executable instructions implementing a parser that has multiple parse states, wherein, when the instructions are executed by a computer, the instructions cause the computer to perform a process comprising: receiving a portion of a software program in an original linguistic form in a high level language, wherein the portion of the software program includes a nonlinear program element having a body; tokenizing the portion of the software program to generate an input stream of tokens representing the portion of the software program; and while retaining the original linguistic form, using a set of one or more production rules to control a parser to directly execute the nonlinear program element by manipulating a parse state and the input stream of tokens, wherein the one or more production rules enable the parser to perform type conversion and the one or more production rules enable the parser to insert an expression into the input stream of tokens to skip tokens in the input stream of tokens during execution of the nonlinear program element, and wherein directly executing comprises executing tokens until the dynamic end of the nonlinear program element is reached, and wherein manipulating the input stream of tokens comprises using the one or more production rules to perform type conversion on at least one token of the input stream of tokens and using the one or more production rules to insert expressions into the input stream of tokens to skip tokens during execution of the nonlinear program element.