Logo

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:

  1. Download the platform appropriate inFamix from: http://www.intooitus.com/products/infamix
  2. 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).

User Contributed Notes

me (5 June 2015, 5:13 pm)

Trying to get a C parser... http://www.intooitus.com/products/infamix <-- that link has gone away, and the tool from Intooitus is now called inFusion (and InCode - slightly different versions)

 

This page needs a significant refresh

 

thanks

tacianosilva (11 November 2014, 8:24 pm)

Hello,

 

My project has a maven structure and inFamix generates the MSE file without identifying the libraries and the types of java.lang. The error persists even putting a lib folder in the root directory or the libraries in the root directory.

 

[]'s

nw91 (3 July 2014, 3:58 pm)

Hi,

 

Although this has worked for me in the past, Moose does not happily parse the MSE files created by the latest version of InFamix that I downloaded.

 

I am using a Mac, with inFamix version 0.9 (I think - according to the accompanying SLA pdf), and the Moose_Suite_4_9 image.

 

When I try to import the MSE file (generated from a project written in Java 1.7), it gives me multiple MessageNotUnderstood windows, e.g. MessageNotUnderstood: FamixClass>>parameterizedTypes

 

Perhaps there is a disparity in the versions of MSE files?

 

All the best,

 

Neil

steve.freeman (17 October 2011, 2:39 pm)

inFusion appears to change the .project file for its own purposes. This is not acceptable for a commercial system.

vonbecmann (17 July 2011, 3:10 am)

it would be nice if you can explain the structure of the project. for instance,

the project should be like this

/project

 /src - java sources

 /lib - all libraries

 

because i couldn't find that info, and i spent a lot of time importing a java project.

Add a Note