Modern complier implementation in C: basic techniques
Modern complier implementation in C: basic techniques
A Formalization of Transition Diagram Systems
Journal of the ACM (JACM)
Design of a separable transition-diagram compiler
Communications of the ACM
Theory and Practice of Compiler Writing
Theory and Practice of Compiler Writing
Hi-index | 0.00 |
The implementation of syntactic parsers is a very important task in compiler construction. There are several classic methods and algorithms used for syntactic parser construction [1][2][3][4][5]. In [3] there is a proposal of a method for the automatic construction of syntax acceptors from context-free grammars, and also a first extension of this method in order to allow the generation of syntax trees while accepting input sentences. In this paper we present a further extension of that method by including the addition of semantic actions to the generated device. This is a very practical method which can be used for educational purposes, by means of a step-by-step construction and understanding of each algorithm applied to the original grammar. Moreover, the transducer representing the desired parser activates semantic actions while a syntactic parsing tree is automatically generated for the given input sentence.