Write short note on Design of an Editor System Programming and Compiler Construction Sem 6 Mumbai University Dec 2016

The Eduladder is a community of students, teachers, and programmers just interested to make you pass any exams. So we solve previous year question papers for you.
See Our team
Wondering how we keep quality?
Got unsolved questions?

Ask Questions
COMPAILER-DESIGN-10CS63-VTU-NOTES-UNIT-5-->View question


Write short note on: Design of an Editor-System Programming and Compiler Construction-Sem 6-Mumbai University-Dec 2016

It is related to system programming and compiler construction.

By:leo

Taged users:
|13priya|Salomon-Dalmet

Likes:
|Purnima

Dislikes:
Be first to dislike this question

Talk about thisDelete|Like|Dislike|


Answers

                           
Editor
-A text editor is a tool that allows a user to create and revise documents in a computer.
-Though this task can be carried out in other modes, the word text editor commonly refers to the tool that does this interactively.
-Earlier computer documents used to be primarily plain text documents, but nowadays due to improved input-output mechanisms and file formats, a document frequently contains pictures along with texts whose appearance (script, size, color and style) can be varied within the document.
-Apart from producing output of such wide variety, text editors today provide many advanced features of interactiveness and output.
Types of Text Editors
-Depending on how editing is performed, and the type of output that can be generated, editors can be broadly classified as -
1. Line Editors - During original creation lines of text are recognized and delimited by end-of-line markers, and during subsequent revision, the line must be explicitly specified by line number or by some pattern context. eg. edlin editor in early MS-DOS systems.
2. Stream Editors - The idea here is similar to line editor, but the entire text is treated as a single stream of characters. Hence the location for revision cannot be specified using line numbers. Locations for revision are either specified by explicit positioning or by using pattern context. eg. sed in Unix/Linux.
Line editors and stream editors are suitable for text-only documents.
3. Screen Editors - These allow the document to be viewed and operated upon as a two dimensional plane, of which a portion may be displayed at a time. Any portion may be specified for display and location for revision can be specified anywhere within the displayed portion. eg. vi, emacs, etc.
4. Word Processors - Provides additional features to basic screen editors. Usually support non-textual contents and choice of fonts, style, etc.
5. Structure Editors - These are editors for specific types of documents, so that the editor recognizes the structure/syntax of the document being prepared and helps in maintaining that structure/syntax.
Editor Structure
Most text editors have a structure similar to that shown in the following figure.
Command language Processor accepts command, uses semantic routines – performs functions such as editing and viewing. The semantic routines involve traveling, editing, viewing and display functions.

-Editing operations are specified explicitly by the user and display operations are specified implicitly by the editor. Traveling and viewing operations may be invoked either explicitly by the user or implicitly by the editing operations.
-In editing a document, the start of the area to be edited is determined by the current editing pointer maintained by the editing component. Editing component is a collection of modules dealing with editing tasks. Current editing pointer can be set or reset due to next paragraph, next screen, cut paragraph, paste paragraph etc.
-When editing command is issued, editing component invokes the editing filter – generates a new editing buffer – contains part of the document to be edited from current editing pointer.
-Filtering and editing may be interleaved, with no explicit editor buffer being created.
-In viewing a document, the start of the area to be viewed is determined by the current viewing pointer maintained by the viewing component.
-Viewing component is a collection of modules responsible for determining the next view.
-Current viewing pointer can be set or reset as a result of previous editing operation.

aksingh1818

Likes:
|aksingh1818

Dislikes:
Be first to dislike this answer
Talk about this|Once you have earned teacher badge you can edit this questionDelete|Like|Dislike|
------------------------------------

Can you help us to add better answer here? Please see this



Not the answer you're looking for? Browse other questions from this Question paper or ask your own question.

Join eduladder!