Patent ID: 8863101

Claim:
A computing device that includes hardware configured to operate as a system comprising: an input compiler scanning and parsing module that receives a unified input description containing syntax rules for both regular and context-free expressions and interspersed code, the input compiler scanning and parsing module configured to translate the unified input description into a common internal representation, wherein the common internal representation store information on every attribute used in a grammar rule; a regular expression checker coupled to the input compiler scanning and parsing module configured to check regular expressions in the common internal representation; a context-free expression checker coupled to the regular expression checker configured to check context-free expressions in the common representation; a code checker coupled to the context-free expression checker configured to check the interspersed code, wherein the code checker checks the interspersed code and the usage of the attributes for correctness or violations and are reported as error messages; and a code optimizer and code generator coupled to the code checker that inputs the interspersed code to create and output an executable compiler program.