|
| This Article | ||
| ||
| Share | ||
| Bibliographic References | ||
| Add to: | ||
| | ||
| Search | ||
| ||
Syntax-Directed Pretty Printing-A First Step Towards a Syntax-Directed Editor
March 1983 (vol. 9 no. 2)
pp. 119-127
| ASCII Text | x | ||
| L.F. Rubin, "Syntax-Directed Pretty Printing-A First Step Towards a Syntax-Directed Editor," IEEE Transactions on Software Engineering, vol. 9, no. 2, pp. 119-127, March, 1983. | |||
| BibTex | x | ||
| @article{ 10.1109/TSE.1983.236456, author = {L.F. Rubin}, title = {Syntax-Directed Pretty Printing-A First Step Towards a Syntax-Directed Editor}, journal ={IEEE Transactions on Software Engineering}, volume = {9}, number = {2}, issn = {0098-5589}, year = {1983}, pages = {119-127}, doi = {http://doi.ieeecomputersociety.org/10.1109/TSE.1983.236456}, publisher = {IEEE Computer Society}, address = {Los Alamitos, CA, USA}, } | |||
| RefWorks Procite/RefMan/Endnote | x | ||
| TY - JOUR JO - IEEE Transactions on Software Engineering TI - Syntax-Directed Pretty Printing-A First Step Towards a Syntax-Directed Editor IS - 2 SN - 0098-5589 SP119 EP127 EPD - 119-127 A1 - L.F. Rubin, PY - 1983 KW - syntax-directed editor KW - Editor generator KW - formatter KW - language-independence KW - pretty printer KW - programming environments VL - 9 JA - IEEE Transactions on Software Engineering ER - | |||
A language-independent syntax-directed pretty printer has been implemented as the first step towards building a language-independent syntax-directed editor. The syntax-directed pretty printer works in two phases: the grammar processing phase and the program processing phase. In the grammar processing stage, a grammar which contains a context-free grammar and information for the parser and pretty printer is processed and all files needed by the second phase are written. With these files, the syntax-directed pretty printer works for the language of the grammar. The syntax-directed editor would use the same grammar processing phase to construct the files needed to make it work for a specific language. In the program processing phase, programs in the language of the grammar are parsed and parse trees are built. If syntax errors are found, error messages are produced and error recovery is done. The parse trees are pretty printed according to the pretty printer specifications given in the grammar, resulting in well-indented, syntactically clear programs.
Index Terms:
syntax-directed editor, Editor generator, formatter, language-independence, pretty printer, programming environments
Citation:
L.F. Rubin, "Syntax-Directed Pretty Printing-A First Step Towards a Syntax-Directed Editor," IEEE Transactions on Software Engineering, vol. 9, no. 2, pp. 119-127, March 1983, doi:10.1109/TSE.1983.236456
Usage of this product signifies your acceptance of the Terms of Use.

