Eli   Documents

General Information

 o Eli: Translator Construction Made Easy
 o Global Index
 o Frequently Asked Questions
 o Typical Eli Usage Errors

Tutorials

 o Quick Reference Card
 o Guide For new Eli Users
 o Release Notes of Eli
 o Tutorial on Name Analysis
 o Tutorial on Scope Graphs
 o Tutorial on Type Analysis
 o Typical Eli Usage Errors

Reference Manuals

 o User Interface
 o Eli products and parameters
 o LIDO Reference Manual
 o Typical Eli Usage Errors

Libraries

 o Eli library routines
 o Specification Module Library

Translation Tasks

 o Lexical analysis specification
 o Syntactic Analysis Manual
 o Computation in Trees

Tools

 o LIGA Control Language
 o Debugging Information for LIDO
 o Graphical ORder TOol

 o FunnelWeb User's Manual

 o Pattern-based Text Generator
 o Property Definition Language
 o Operator Identification Language
 o Tree Grammar Specification Language
 o Command Line Processing
 o COLA Options Reference Manual

 o Generating Unparsing Code

 o Monitoring a Processor's Execution

Administration

 o System Administration Guide

Mail Home

Tasks related to input processing

Previous Chapter Next Chapter Table of Contents


Specifying Include Directories

The Include module defines command line parameters to specify directories that might contain files to be included. It does this by exporting the following CLP specification (see Specifying the command line interface of Command line processing):

   IncludeDirs "-I" joinedto strings
      "Directories to search for included files";
   Source input
      "Primary input file";
The general form of a command line that can be recognized using this CLP specification is:

  1. A program name, followed by
  2. An arbitrary number of -I options, followed by
  3. A single file name.
For example, suppose that the developer uses Eli to generate a processor called DemoProc. DemoProc accepts text written in a language called Demo, and Demo defines inclusion commands. A user has a Demo text file DemoText that might contain inclusion commands for files found in the directories subDir and /usr/local/etc. Here is the appropriate command line:

   DemoProc -IsubDir -I/usr/local/etc DemoText
If a directory name does not begin with the character /, then that name is considered to be relative to the current directory. Thus, in this example, subDir must be a subdirectory of the current directory and /usr/local/etc is probably a system directory.

Please note that the CLP specification introduced by the Include module contains an input parameter (see Input parameters of Command line processing). If the Include module is instantiated in a context containing its own CLP specification with an input parameter, the input parameter in that CLP specification must be deleted. If the context contains any reference to the name of the deleted input parameter, that reference must be changed to reference Source.


Previous Chapter Next Chapter Table of Contents