Patent ID: 8453126

Claim:
A computer implemented method for converting a runtime macro language (“RML”) readable program to a target language readable program, by lexing and parsing, comprising: analyzing by the computer the RML readable program into a stream of tokens, one or more of the tokens being ambiguous; parsing by the computer the stream of tokens to generate an abstract syntax tree (AST), using a context dependent parsing module adapted to RML to resolve the ambiguous tokens; processing by the computer the AST to identify target language objects and identify RML specific constructs, each said RML specific construct affecting the control flow of the RML readable program; modifying by the computer the AST to express the affected control flow of the RML readable program with target language program elements; traversing by the computer the modified AST and for each element in the modified AST: selecting a corresponding template of target language code from a template library; filling the template with parameters corresponding to the element in the modified AST; and placing the filled target language code template into an output target language readable program.