Tutorial Remove C-Comment ( C )

Tutorial Remove C-Comment ( C )

Scope
Create a new model from scratch
Create your own data type
Create the model
Generate, build and run the model
Summary

Scope

In this tutorial you will create a more complex model. The model implements a simple parser that removes comments (block comments and line comments) from a C source file. Therefore we will create two actors. One actor is responsible to perform the file operations, whether the second actor implements the parser.

You will perform the following steps:

  1. create a new model from scratch for C

  2. define a protocol

  3. define your own data type

  4. create the structure and the behavior by yourself

  5. generate, build and run the model

Make sure that you have set up the workspace as described in Setting up the Workspace for C Projects.