1. A method to transform source code from an input architecture to a target architecture comprising: receiving one or more input source code files of an n-tier application, the input source code files comprising a plurality of programming language code constructs; receiving one or more target grammars corresponding to the mobile form-factor constrained target architecture; receiving an architectural specification corresponding to the n-tier input application; receiving an architectural specification corresponding to the target architecture; generating an annotated abstract syntax tree representing at least one code construct from at least one input source code file, based at least on one or more target grammars, the n-tier architectural specification and the target architecture specification, wherein at least one of the annotations comprises a transformation rule to map the code construct from the at least one of the input source code files represented in the annotated abstract syntax tree to the target architecture; and generating target source code based at least on the annotated abstract syntax tree comprising at least one mobile component and at least one server component.