Transformations of grammars and translation directed by parsing
Bořivoj Melichar; Nguyen van Bac
Kybernetika (2002)
- Volume: 38, Issue: 1, page [13]-44
- ISSN: 0023-5954
Access Full Article
topAbstract
topHow to cite
topMelichar, Bořivoj, and Bac, Nguyen van. "Transformations of grammars and translation directed by $LR$ parsing." Kybernetika 38.1 (2002): [13]-44. <http://eudml.org/doc/33565>.
@article{Melichar2002,
abstract = {The class of $LR$ translation grammars is introduced. This class is characterized by a possibility to implement a formal translation as an algorithm directed by $LR$ parsing. To perform a translation, the conventional $LR$ parser is extended by a facility to perform output operations within the parsing actions shift and reduce. The definitions of Kernel$(R)$- and $LR$-translation grammars are presented. The transformations shaking-down and postponing that enable to transform some translation grammars into Kernel$(R)$-translation grammars are described and used in the process of construction of the collection of sets of $LR(k)$ translation items. Different algorithms using these transformations are presented in an uniform way which makes it possible to compare them and to fix the hierarchy of the $LR$ translation grammars.},
author = {Melichar, Bořivoj, Bac, Nguyen van},
journal = {Kybernetika},
keywords = {translation grammars; parsing; translation grammars; parsing},
language = {eng},
number = {1},
pages = {[13]-44},
publisher = {Institute of Information Theory and Automation AS CR},
title = {Transformations of grammars and translation directed by $LR$ parsing},
url = {http://eudml.org/doc/33565},
volume = {38},
year = {2002},
}
TY - JOUR
AU - Melichar, Bořivoj
AU - Bac, Nguyen van
TI - Transformations of grammars and translation directed by $LR$ parsing
JO - Kybernetika
PY - 2002
PB - Institute of Information Theory and Automation AS CR
VL - 38
IS - 1
SP - [13]
EP - 44
AB - The class of $LR$ translation grammars is introduced. This class is characterized by a possibility to implement a formal translation as an algorithm directed by $LR$ parsing. To perform a translation, the conventional $LR$ parser is extended by a facility to perform output operations within the parsing actions shift and reduce. The definitions of Kernel$(R)$- and $LR$-translation grammars are presented. The transformations shaking-down and postponing that enable to transform some translation grammars into Kernel$(R)$-translation grammars are described and used in the process of construction of the collection of sets of $LR(k)$ translation items. Different algorithms using these transformations are presented in an uniform way which makes it possible to compare them and to fix the hierarchy of the $LR$ translation grammars.
LA - eng
KW - translation grammars; parsing; translation grammars; parsing
UR - http://eudml.org/doc/33565
ER -
References
top- Aho A. V., Ullman J. D., The Theory of Parsing, Translation and Compiling, Vol. 1: Parsing, Vol. 2: Compiling. Prentice–Hall, New York 1971, 1972 (1971) MR0408321
- Aho A. V., Sethi, R., Ullman J. D., Compiler–Principles, Techniques and Tools, Addison–Wesley, Reading, 1987
- Bac N. V., Translation Grammars, MSc Thesis. Department of Computer Science and Engineering, CTU, Prague 1994. In Czech (1994)
- Bac N. V., Melichar B., Hierarchy of Translation Grammars, Research Report DC-96-09, Department of Computer Science and Engineering, CTU, Prague 1996
- Janoušek J., One–pass formal translation directed by parsing, In: WORKSHOP’97, CTU, Prague 1997, pp. 139–140 (1997)
- Janoušek J., Melichar B., Formal translations described by translation grammars with input grammars, In: Ninth International Symposium on Programming Languages, Implementations, Logics and Programs (Lecture Notes in Computer Science 1338), Springer–Verlag, Berlin 1997, pp. 421–422 (1997)
- Janoušek J., Melichar B., The output-store formal translator directed by LR parsing, In: SOFSEM’97: Theory and Practice of Informatics (Lecture Notes in Computer Science 1338), Springer–Verlag, Berlin 1997, pp. 432–439 (1997)
- Lewis P. M., Stearns R. E., 10.1145/321466.321477, J. Assoc. Comput. Mach. 15 (1967), 3, 465–488 (1967) DOI10.1145/321466.321477
- Lewis P. M., Rosenkrantz D. J., Stearns R. E., Compiler Design Theory, Addison–Wesley, London 1976 Zbl0464.68004
- Melichar B., Compilers, Publishing House of the Czech Technical University, Prague 1991. In Czech (1991)
- Melichar B., Translation Grammars, Reseach Report DC-92-03, Department of Computer Science and Engineering, CTU, Prague 1992
- Melichar B., Formal translation directed by parsing, Kybernetika 28 (1992), 1, 50–61 (1992) Zbl0746.68056MR1159874
- Melichar B., Transformations of translation grammars, Kybernetika 30 (1994), 1, 53–62 (1994) Zbl0820.68069MR1267471
- Melichar B., Bac N. V., Transformations of Grammars and Translation Directed by Parsing, Research Report DC-96-02, Department of Computer Science and Engineering, CTU, Prague 1996
- Purdom P., Brown C. A., 10.1007/BF00286489, Acta Inform. 14 (1980), 4, 229–315 (1980) Zbl0424.68052MR0593927DOI10.1007/BF00286489
NotesEmbed ?
topTo embed these notes on your page include the following JavaScript code on your page where you want the notes to appear.