Dismiss
InnovationQ will be updated on Sunday, Oct. 22, from 10am ET - noon. You may experience brief service interruptions during that time.
Browse Prior Art Database

Language Processing Language, Output Source Definition

IP.com Disclosure Number: IPCOM000108242D
Original Publication Date: 1992-May-01
Included in the Prior Art Database: 2005-Mar-22
Document File: 1 page(s) / 41K

Publishing Venue

IBM

Related People

Hidalgo, DS: AUTHOR

Abstract

Disclosed is a feature of the LANGUAGE PROCESSING LANGUAGE (LPL) that supports the interfacing of a Lexical Scanner mechanically generated from an LDF (Language Definition File) with manually written code to form a translator for a formal language. Associated with the task of language translation is the source where input symbols are written by the Lexical Scanner. A translator might or might not need to write its input to an output source. However, if any set of input symbols is to be written to an output source file, then the manually written code must define an Output Source name. Because the LPL generated code needs to make reference to the Output Source name, it is necessary for the designer using LPL to make the name of the Output Source known to an LPL translator by specifying it in the LDF.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 92% of the total text.

Language Processing Language, Output Source Definition

       Disclosed is a feature of the LANGUAGE PROCESSING
LANGUAGE (LPL) that supports the interfacing of a Lexical Scanner
mechanically generated from an LDF (Language Definition File) with
manually written code to form a translator for a formal language.
Associated with the task of language translation is the source where
input symbols are written by the Lexical Scanner. A translator might
or might not need to write its input to an output source. However, if
any set of input symbols is to be written to an output source file,
then the manually written code must define an Output Source name.
Because the LPL generated code needs to make reference to the Output
Source name, it is necessary for the designer using LPL to make the
name of the Output Source known to an LPL translator by specifying it
in the LDF.

      The syntactic structure provided by this feature is shown in
the figure. It represents a means by which the LPL user specifies the
name of the Output Source file in the Lexical Section of the LDF.
The name specified by "String" is a designer-defined name that can
represent the output source to which symbols are written by the
Lexical Scanner generated by an LPL translator. All code generated by
an LPL translator makes references to this name when writing input
symbols.

      The usage of the Output Source Definition feature in the design
of a language translator using LPL is optional. If no Lexical...