Eli   Documents Get Eli: Translator Construction Made Easy at SourceForge.net.
    Fast, secure and Free Open Source software downloads

General Information

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


 o Quick Reference Card
 o Guide For new Eli Users
 o Release Notes of Eli
 o Tutorial on Name Analysis
 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


 o Eli library routines
 o Specification Module Library

Translation Tasks

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


 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


 o System Administration Guide

Mail Home
Open PDF File

Tutorial on Name Analysis

This tutorial introduces to the solution of the name analysis task in language implementation. It demonstrates many aspects of that task which occur in programming languages or special purpose languages. They are developed from basic ones, such as nested scopes, up to more complex ones, such as classes with multiple inheritance.

This tutorial may be used as a practical introduction to the specification techniques for name analysis, or as a source of examples that show how to solve certain problems, or as a source of hints for language design.

This file is an executable specification. An analyzer for a small artificial language can be generated from it. The language is kept small by restricting it to those constructs necessary to demonstrate the name analysis task, not regarding its usability for programming. Its notation is inspired by Pascal, although the name analysis rules are not taken from Pascal. The generated analyzer produces output that reports the result of name analysis, i. e. the binding of identifier occurrences.

The explanations in this tutorial assume that the reader is familiar with the use of the Eli system, with the use of its module library, and knows the general description of the name analysis task in the documentation of the module library, see Name Analysis of Specification Module Library: Name-Analysis.

This tutorial is available in three variants that differ in the basic underlying scope rules, C-like or Algol-like. The third variant is based on C-like scope rules; its computations are executed while the input is read. The specifications differ only in which library modules being used, and, in a few places, where they are applied. This variant of the tutorial shows the Algol-like scope rules.