Glamorous Toolkit is now beta. Read more.

Analyzing C/C++ systems

C/C++ is directly supported through the internal parser and importer.

Importing C/C++

model := FAMIXCPPImporter new
  importFrom: '/PATH/TO/ROOT' asFileReference;
  model
        

Parsing C++

Glamorous Toolkit ships with a built in parser and abstract syntax tree implementation:

cppFile := 'PATH/TO/FILE.cpp' asFileReference.
CPPParser parse: cppFile contents