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

Solutions of common problems

Previous Chapter Next Chapter Table of Contents


String Concatenation

This module provides functions for concatenation of strings, and the name CharPtr for the type char *.

The module is instantiated by

   $/Tech/Strings.specs

All entities exported by this module can be used in specifications of type .lido, .init, .finl, and .con. They can also be used in .pdl specifications or in C modules if the interface file Strings.h is imported there.

The module defines the type name CharPtr for char *, especially to be used in LIDO specifications.

The module exports the functions

CharPtr CatStrStr (CharPtr s1, CharPtr s2)
The strings s1, s2 are concatenated. The resulting string is stored in the string memory of the csm module, and the pointer to it is returned.

int IndCatStrStr (CharPtr s1, CharPtr s2)
The strings s1, s2 are concatenated. The resulting string is stored in the string memory of the csm module, and its StringTable index is returned.

A macro CatStrInd(s,i) is exported it obtains the second of the concatenated strings by the index i into the StringTable. This macro is used to simplify composition of message texts.


Previous Chapter Next Chapter Table of Contents