Generation of language independent modular prettyprintersM
نویسنده
چکیده
An algebraic approach to address the problem of generating prettyprinters is described. An algebraic prettyprint generator is deened which produces an algebraic prettyprinter for a language given its context-free grammar. Adaptation of the generated prettyprinter is possible by customizing the generated prettyprint rules. The prettyprinter transforms the abstract syntax tree of the text to be prettyprinted into a box-language expression. This expression, the so-called box-term, is processed by a generic formatter (also algebraically speciied). The generated prettyprinter is able to deal with various forms of comments. The context-free grammar may be split into modules and, instead of generating one big pret-typrinter for such a context-free grammar, a corresponding prettyprint module is generated for each syntax module. The collection of generated modules form the prettyprinter for the speciied language. Prettyprinters for various languages have been generated. Among these are PASCAL, a simpliied version of LISP, and Action Semantics.
منابع مشابه
Contributions of Kumaravadivelu’s Language Teacher Education Modular Model (KARDS) to Iranian EFL Language Institute Teachers’ Professional Identity
This research aims to investigate the contributions of KARDS (knowing, analyzing, recognizing, doing, and seeing) to Iranian English as a foreign language (EFL) institute teachers’ professional identity reconstruction. The researchers employed purposive sampling to choose twenty teachers. A KARDS questionnaire (Hassani, Khatib, & Yazdani Moghaddam, 2019a, 2019b) was used to classify the teacher...
متن کاملA flexible distributed architecture for NLP system development and use
We describe a distributed, modular architecture for platform independent natural language systems. It features automatic interface generation and self-organization. Adaptive (and non-adaptive) voting mechanisms are used for integrating discrete modules. The architecture is suitable for rapid prototyping and product delivery .
متن کاملInvestigation the status of instructional design with modular method in medical education
Background and Goal: Modular method is a form of in-service training which provides job skills into a form of independent training of audiences. Each of modular provides specific skill and at the same time besides the other modular led to a new and comprehensive skill. In fact, any educational modular is a set of knowledge, attitudes and skills which by using them it can be possible to do ...
متن کاملData-Driven News Generation for Automated Journalism
Despite increasing amounts of data and ever improving natural language generation techniques, work on automated journalism is still relatively scarce. In this paper, we explore the field and challenges associated with building a journalistic natural language generation system. We present a set of requirements that should guide system design, including transparency, accuracy, modifiability and t...
متن کاملMeta-generation of syntax-oriented editors
A method for automatic generation of syntax-oriented editors (SOE) for high level programming languages is presented. It is based on a special template definition metalanguage. The SOE functional environment including the operations with source files and internal representation of the programs in form of abstract syntax tree was implemented as an independent modular structure. As a result of ta...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1993