LLOOP Index | GSP Language | GSP Library | Framework Classes | Component Classes

LLOOP GSP Language Reference

This is the Reference Guide for writing GSP specification files. Examples are provided along all explanations.


Index

  1. Overview
  2. Symbol Definitions
  3. Syntax Rules Definitions

Overview

A GSP file is written in plain text files which should have the " .gsp " file extension.

Its content divides into two parts :

A GSP file can be empty. There is also rarely no definition to provide for a symbol, because there is always at least one token needed. Most time some symbols also need to be defined for integration purposes with the final application in the target programming language.

Symbol Definitions

Overview

The following types can be defined in the scope of the symbol definitions:

Any symbol definition, i.e. token, non-terminal or option, offers the following common features:

Importing gsp files

Tokens

Non-terminals

Command Line Options

  • TCL/TK Entry forms
  • There is a TCL/TK form generated for each option set.

    There is a separate page describing the generated TCL/TK entry forms, how to use and how to integrate them into your applications.

  • Graphical Front End Applications
  • LLOOP allows it to create Graphical Front End Applications (GFE) for controlling command line programs, without any programming, based on the generated forms and a configurable template GFE application.

  • Example
  • The gsp spec files used to implement the gspc generator provide a complete example for this functionality.

    Pre-processors

    Post-processors

    Symbol Count Limits

    Symbol Inheritances

    Symbol Self-tests

    Symbol Aliases

    Including C++ Header Files

    Recommendations

    Syntax Rules Definitions

    BNF Syntax Rules

    Syntax Rule Reduction Code

    Syntax Rule Expand Code

    Getting parsed symbols values within reduction code


    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