TREGRM-83 Report and User's Manual.

Abstract

The first phase of the analysis of a computer program is lexical analysis, where the source text is broken up into the words or tokens, of the programming language. The second phase is syntactic analysis of parsing, where structure of the program is determined. The result of parsing is often a sequence of calls to a semantic routine with a reduction number or action number as the argument. To provide a more structured interface between the syntactic analysis and semantic analysis of a program, a parse tree can be created, where the parse tree is a flattened (simplified) version of the derivation tree for that program. To support the production of parse tree for generators, the TREGRM System was developed. TREGRM is a language for specifying the creation of parse trees for any current programming language, including FORTRAN. This report describes the TREGRM language, a complier for the language, and an interpreter for the resulting object code. The interpreted object code, in conjunction with a lexical analyzer, forms a syntactic analyzer that takes as input a stream of characters and produces as output a parse tree. The complier and interpreter are designed for portability. Both are written in ANSI FORTRAN supplemented by a small number of short machine dependent subroutines. Included is a TREGRM program describing the syntax of FORTRAN-77.

Open PDF

Document Details

Document Type
Technical Report
Publication Date
Jan 01, 1983
Accession Number
ADA132874

Entities

People

  • Geoffrey M. Clemm

Organizations

  • University of Colorado Boulder

Tags

Communities of Interest

  • Materials and Manufacturing Processes

DTIC Thesaurus Topics

  • Analyzers
  • Colorado
  • Compilers
  • Computer Programming
  • Computer Programs
  • Computer Science
  • Computers
  • Demographic Cohorts
  • Generators
  • Grammars
  • Language
  • Military Research
  • Object Code
  • Procedures (Computers)
  • Programming Languages
  • Standards
  • Translations

Fields of Study

  • Computer science

Readers

  • Computational Linguistics
  • Computer Science.