Wrapping C++ and Java Using a Meta framework

S NaderaBeevi and D Chitraprasad (TKM College of Engineering, India); Vinod Chandra S S (University of Kerala, India)

This paper describes a parser developed for a Meta framework obtained by combining C++ and Java language segments. It enhances flexibility and effectiveness of Execution Preserving Language Transformation (EPLT) using Meta framework. Augmented versions of existing languages can be developed by combining good properties of two languages. The growing popularity of Java language forces programmer to implement data structures and algorithms of other languages in Java. The framework identifies and parses source code with C++ and Java language statements using metagrammar developed and create a unified AST for the hybrid source code. Bytecodes are generated for the AST and interpreted. It provides a transformational scheme where many error prone tasks are automated so that a more powerful robust incremental compiler can be developed.

Journal: International Journal of Simulation- Systems, Science and Technology- IJSSST V13

Published: Feb 27, 2012

DOI: 10.5013/IJSSST.a.13.01.06