4.3.2 Importing Java and C/C++ using the inFamix external parser
inFamix is a parser for Java and C/C++ built by http://www.intooitus.com. The parser is based on the scalable inFusion platform. The parser is available as a free command line tool and it exports MSE .
The steps to follow are:
- Download the platform appropriate inFamix from: http://www.intooitus.com/products/infamix
- Unpack and launch it from the command line using the following syntax:
For example, on Linux and Mac, you can say:
./inFamix.sh -lang java -path YOUR_PATH -mse THE_MSE_FILE.mse
To obtain the best results, point to a folder that includes both the source code and the external jar libraries.
The exported MSE model only contains the pointer to the source code, but not the actual source. Thus, when loading into Moose, you need to tell Moose where the root folder is (see Section 4.5).