Analyzing C# systems
C# is supported in two distinct ways: through the external roslyn2famix parser, and through the internal C# parser.
Importing C# with roslyn2famix via an MSE file
roslyn2famix is a project implemented in C# based on the Roslyn project. The project is used from the command line to produce an intermediary file that can be loaded in Glamorous Toolkit.
Please for follow the instructions from roslyn2famix to produce an MSE file. MSE is a file format for exchanging models. The MSE produced by roslyn2famix contains a serialization of the model for the C# code.
Once an MSE model exists, you can load it into Glamorous Toolkit like this:
model := MooseModel new importMSEFromFile: '/PATH/TO/FILE.mse' asFileReference
Glamorous Toolkit ships with a built in parser and abstract syntax tree implementation for C#.
csFile := 'PATH/TO/FILE.cs' asFileReference. CSharpParser parse: csFile contents