| LLOOP Index | GSP Language | GSP Library | Framework Classes | Component Classes |
This page explains how to run the generator and gives a detailed description of the possible options.

The LLOOP generator is a standalone and command-line application. The name of the command line executable itself is gspc[.exe] which stands for GSP Compiler. gspc configures either from command line options or from explicit user configuration file or a mix of both.
However, the most convenient way to use and control it is to use its graphical front-end GFE LLOOP of which you see a screenshot above. The GFE executable file is gfelloop[.exe].
GFE makes it straightforward to exploit all functionality of the tool, as its graphical user interface eases a lot the configuration process and makes transparent how gspc is run and technically configured. Moreover, it allows to handle your configuration parameters in a project-oriented way (.lloop files):
to start the generation. A generation is always tied with a directory, called "project directory":
Every generated files and any reference to other files are dealt with relatively to the project directory.
All information related to the last generation is stored in the project directory, below the hidden .gspc/ sub-directory. There are stored the list of all generated files as well as configuration parameters used in last generation. The .gspc/ sub-directory is managed automatically and transparently by gspc and shall never be modified manually.
There are actually three ways to configure the generator:
This is the most convenient way to configure gspc, at least for the first time the project is set up.
The user has just to click on the
icon to start the generation.
The GFE automatically builds the entire command line arguments from the entered data in the GUI and passes them always explicitly to gspc, ensuring previously stored parameters inside .gspc/ are cleaned up.
When only command line options are used, all configuration parameters are kept persistent below the .gspc/, and gspc always attempt to read them back and use them.
In that case, it is sufficient to invoke gspc without any argument simply to replay a generation.
Explicit command line options always take precedence and override any persistent configuration parameters, either stored below .gspc/ or within an explicit configuration file.
When an explicit configuration file "gspc.cfg" is present in the project directory, gspc will also use the parameters defined there.
Configuration parameters inside the configuration file are specified exactly as they are given by command line, except that they can additionally be given on multiple lines.
When an explicit configuration file is used, previously saved configuraton parameters below the .gspc/ are never used.
It is recommended to not use explicit user configuration files, except if the GFE can not be run or is never used.
The following information are provided as support when running gspc directly on command line and not with the graphical interface.
gspc runs similarly on all operating systems. On Windows systems, it is run from a MS-DOS command interpreter. On UNIX systems it is run from your usual shell.
To get a concise list of available options, type gspc --.
To get a comprehensive documentation on available options, type gspc -h.
gspc runs from your usual shell or terminal.
When LLOOP is installed from the RPM file, the default shell environment is updated as follows:
During installation, the resource files gspcrc.sh and gspcrc.csh for resp. standard shells and CSH shells are copied below /etc/profile.d.
gspc runs from the MS-DOS command interpreter.
The MS-DOS command interpreter can be executed from the desktop by clicking Start, selecting the Run menu and executing the cmd application.
For using gspc you may set your PATH variable to relieve you from specifying the full path of the generator to run it. This can be done as follows:
;C:\LLOOP\
gspc runs from the MS-DOS command interpreter.
The MS-DOS command interpreter can be executed from the desktop by clicking Start, selecting the Run menu and executing the command application.
For using gspc you may set your PATH variable to relieve you from specifying the full path of the generator to run it. This can be done as follows:
;C:\LLOOP\
An example of resulting PATH line could be:
PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\LLOOP\
The GFE project files (.lloop) which allow to compile and run all examples are part of the release package and can be found below the examples directory.
In particular, the examples.lloop project allows to compile and run in batch all examples.
Check this link to get more information about the provided examples.
This file is part of the LLOOP Reversible Object-Oriented Parser Generator. Copyright (c) 2005-2006 Michel MEHL, France. All rights reserved. LLOOP is distributed by the company ERSA SaRL.
| Copyright (c) 2005-2006 Michel MEHL, Haguenau, France |
| LLOOP version 1.1 |