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.


Asked by:leo

Taged users:
13priyaSalomon-Dalmet

Likes:
Purnima

Dislikes:
Be first to dislike this question
Talk about this  Delete  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.

Answerd By:aksingh1818

Likes:
|aksingh1818

Dislikes:
Be first to dislike this answer
Talk about this  Delete  Like  Dislike

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



You may also like our videos

Below are some of the videos from our collection. We saw that students not only needed content but also videos. So, we decided to build a video platform for you also an algorithm which shows best videos suites to you related to the content you are browsing check out some videos which suit best for you.

Lets together make the web is a better place

We made eduladder by keeping the ideology of building a supermarket of all the educational material available under one roof. We are doing it with the help of individual contributors like you, interns and employees. So the resources you are looking for can be easily available and accessible also with the freedom of remix reuse and reshare our content under the terms of creative commons license with attribution required close.

You can also contribute to our vision of "Helping student to pass any exams" with these.
Answer a question: You can answer the questions not yet answered in eduladder.How to answer a question
Career: Work or do your internship with us.Work with us
Create a video: You can teach anything and everything each video should be less than five minutes should cover the idea less than five min.How to upload a video on eduladder
Donate: Ad revenue alone is not able to take care of our server cost consider donating at least a dollar Click here to donate.


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

Ask your question?