The Generator module is a separate executable. The command line syntax is given below:
ogener <source> <destination>
Where <source> is a name of a Osiris datafile and <destination> is a name of a file to be generated.
The Generator parses a Osiris datafile and with use of the gathered data it generates a file which is suitable for the Kheops.
Any processing errors are displayed on the standard output.
If generation is successful no messages are displayed.
The Generator uses compilers technology to parse a Osiris datafile. The Flex is used to create the lexical analyzer and the Bison to create the parser. Code generation is based on recreated by Bison's parser graphical objects structure.
The Generator uses a back generation algorithm. It searches for action objects first. Then for each action object finds all its ancestors. For each ancestor generates appropriate conditions.