The parsing problem for affix grammars

SummaryAffix grammars are an extension of context-free grammars which retain most of their advantages and eliminate most of their limitations with respect to the definition of programming languages and the specification of their translators. The extension allows definition of context-sensitive syntax features, and also allows semantics to be linked to syntax. In this paper, the parsing problem for affix grammars is explored and shown to be closely related to the parsing problem for context-free grammars. This enables a standard context-free parser constructor to be generalised to a constructor for affix grammars, essentially by addition of a preprocessor. The resulting constructors are compared with previously implemented or proposed constructors.

[1]  Adriaan van Wijngaarden,et al.  Orthogonal design and description of a formal language , 1965 .

[2]  C.H.A. Koster,et al.  On the construction of algol-procedures for generating, analyzing and translating sentences in natural languages , 1965 .

[3]  Donald E. Knuth,et al.  On the Translation of Languages from Left to Right , 1965, Inf. Control..

[4]  J. M. Foster,et al.  A syntax improving program , 1968, Comput. J..

[5]  Jerome A. Feldman,et al.  Translator writing systems , 1968, Commun. ACM.

[6]  F. L. Deremer,et al.  Practical translators for LR(k) languages , 1969 .

[7]  Franklin L. DeRemer,et al.  Simple LR(k) grammars , 1971, Commun. ACM.

[8]  Cornelis H. A. Koster,et al.  A compiler compiler , 1971 .

[9]  David Crowe,et al.  Generating parsers for affix grammars , 1972, Commun. ACM.

[10]  David A. Watt,et al.  Analysis-oriented two-level grammars , 1974 .

[11]  Daniel J. Rosenkrantz,et al.  Attributed Translations , 1974, J. Comput. Syst. Sci..

[12]  Gregor von Bochmann,et al.  A (Truly) Usable and Portable Compiler Writing System , 1974, IFIP Congress.

[13]  Gregor von Bochmann,et al.  Semantic evaluation from left to right , 1976, CACM.

[14]  Johan Lewi,et al.  An Optimized Translation Process and Its Application to ALGOL 68 , 1976, Lecture Notes in Computer Science.

[15]  Donald E. Knuth,et al.  Top-down syntax analysis , 1971, Acta Informatica.

[16]  Werner Pohlmann,et al.  LR parsing for affix grammars , 1983, Acta Informatica.

[17]  Donald E. Knuth,et al.  Semantics of context-free languages , 1968, Mathematical systems theory.