12
Views
1
CrossRef citations to date
0
Altmetric
Original Articles

A syntax-directed parser for recalcitrant grammars

Pages 105-115 | Published online: 21 Dec 2010
 

Abstract

This paper deals with a syntax-directed parsing scheme being used in a PL/I compiler for the CDC 6600. It uses a highly restricted grammar of the class LL(1) for efficiency, with an escape hatch for those cases excluded by the grammar. These cases are handled by oracles that can make decisions without a full-scale syntactic analysis. The input to SYNDIPAR, the SYNtax Directed PARser, consists of syntax equations, semantic routines, and token class definitions; the output consists of a PARSE procedure in PL/I together with certain tables. The PARSE procedure works in conjunction with a lexical scanner, designed to allow look-ahead by oracles in a uniform fashion. The actual parsing process takes place through the interpretation of a program compiled by SYNDIPAR for a parsing machine. The instruction set of the parsing machine is described, and an example of the compilation of a syntax equation is given.

Reprints and Corporate Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

To request a reprint or corporate permissions for this article, please click on the relevant link below:

Academic Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

Obtain permissions instantly via Rightslink by clicking on the button below:

If you are unable to obtain permissions via Rightslink, please complete and submit this Permissions form. For more information, please visit our Permissions help page.