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 generating output

Previous Chapter Next Chapter Table of Contents


Indentation

The module Indent supplies a C module that implements some functions helpful for indenting text produced by PTG functions. The function names IndentIncr, IndentDecr, IndentNewLine can be inserted into the user's PTG specification, like

   Block: "{" [IndentIncr] $ [IndentDecr] [IndentNewLine] "}"
   Stmt:  [IndentNewLine] $ ";"
Those PTG specifications should not contain strings with the new line character, but should have the [IndentNewLine] call instead.

Use the function IndentNewLine to put a linefeed into the output and indent the next line. IndentIncr increments and IndentDecr decrements the indentation level. The width of a single indentation step may be set to n spaces by the call IndentSetStep (n) executed prior to initiating output (e.g. by PTGOut).

The module does not have generic parameters. It is used by writing

  $/Output/Indent.fw
in a .specs file.


Previous Chapter Next Chapter Table of Contents