Documentation

General Topics

Documentation of the GMS-editor

Documentation of the GDX-editor

The file structure

There are 2 ways to show the file structure - one is the "Folder Structure" and one the "Include Structure".

 

The folder structure shows the order of the folders and files on your hard disk, while the include structure shows the order of $include statements in the files.

 

In the folder structure, you can choose the file extensions to be shown. In this example, gms, gdx and lst files are selected.

Some of the files are marked blue, some orange. The reason will be explained in the next section, the Include Structure.


The include structure

In the include structure we see that there are 2 base files: transport.gms (blue) and Untitled_4.gms (orange).

 

In transport.gms an $include statement calls Subfile1.gms.

From Subfile1.gms, 2 further files are called - SubSubFile1 and SubSubFile2.gms.

From SubSubFile2.gms the subfile Untitled_4.gms is called.

 

The reason of using base files is as follows:

Imagine we are working with SubFile1.gms. In SubFile1.gms we use a set i, which is declared in transport.gms. If we don't consider the information of transport.gms, this set i will be adressed without being declared. But because SubFile1.gms is the base file, the compiler always runs the base file and its include files to find errors and symbol declarations.

 

But we see, that Untitled_4 is used in 2 base files. So, how would GMS-Manager handle this? We will see in the description of the GMS-Manager.