Browse Prior Art Database

Language Processing Language, Input Buffer Definition

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

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. The tight dependencies between a formal language translator's semantic, syntactic and lexical processing create the need to communicate the input token characteristics to the parsing and semantic components of the translator in a manner that is not restrictive of the interface mechanism between those two components. This last condition is very important because the parsing aspect of the translator is mechanically produced through LPL, and the semantic component is manually written and must therefore be somehow interfaced to the mechanically generated code.

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

Language Processing Language, Input Buffer 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. The
tight dependencies between a formal language translator's semantic,
syntactic and lexical processing create the need to communicate the
input token characteristics to the parsing and semantic components of
the translator in a manner that is not restrictive of the interface
mechanism between those two components. This last condition is very
important because the parsing aspect of the translator is
mechanically produced through LPL, and the semantic component is
manually written and must therefore be somehow interfaced to the
mechanically generated code.

      The Input Buffer Definition feature shown in the figure
provides a syntactic means by which the input token characteristics
are made available to the Semantic Functions and the rest of the
manually written code. The Input Buffer name specified by "String" is
used in code mechanically generated by an LPL translator as the name
of a memory buffer where the input token built by the Lexical Scanner
is stored ready for processing by the parsing and semantic components
of the formal language translator. The buffer itself is allocated
either dynamically or statically by the manually written code.