editor structure

14
Editor Structure By: Nikhil Palyekar

Upload: nikhil-palyekar

Post on 25-Jul-2015

110 views

Category:

Engineering


3 download

TRANSCRIPT

Page 1: Editor structure

Editor StructureBy: Nikhil Palyekar

Page 2: Editor structure

Overview

OIntroductionOTypical Editor StructureOSimple relationship between

editing and viewing buffers.

Page 3: Editor structure

An Interactive text editor has become an important part of almost any computing environment

Text editor acts as a primary interface to the computer for all type of “knowledge workers” as they compose, organize, study, and manipulate computer-based information.

Page 4: Editor structure

Typical Editor Structure Diagram

Page 5: Editor structure

Components of Editor Structure

OCommand language processor: It accepts input from the user’s

input devices, and analyzes the tokens and syntactic structure of the commands.

The command language functions much like the lexical and syntactic phases of a complier.

In complier CLP may invoke semantic routines directly.

Page 6: Editor structure

In a text editor, these semantic routines perform functions such as editing and viewing.

CLP may produce an intermediate representation of the desired editing operations.

This intermediate representation is then decoded by an interpreter that invokes the appropriate semantic routines.

The use of an intermediate representation allows the editor to provide the variety of user-interaction languages with a single set of semantic routine.

Page 7: Editor structure

The routines involves travelling, editing, viewing and display functions.

OEditing operations are always specified explicitly by the user.

OThe Display operations are specified implicitly by the other three categories of operations.

OThe travelling and viewing operations may be invoked either explicitly by the user or implicitly by the editing operations

OThere is a relationship between this classes of operations and it is considerably more complicated than a simple model.

Page 8: Editor structure

Simple relationship between editing and viewing buffers

Page 9: Editor structure

OIn editing a document, the start of the area to be edited is determined by the editing component (which deals in editing task).

OThe current editing pointer can be set or reset explicitly by the user with traveling command such as…ONext paragraph ONext screen.

OOr implicitly by the system as a side effect such as delete paragraph.

Current editing pointer

Page 10: Editor structure

OThe traveling component of the editor actually performs the setting of the current editing and the viewing pointers and determines the point at which the viewing or editing filtering begins.

OWhen the user issues an editing command the editing component invokes the editing filter.

OThis filter generates a new editing buffer based on the current editing pointer.

Page 11: Editor structure

OThese parameters which are specified both by the user and the system, provide information such as the range of the text that can be affected by an operation.

--------------------End of CEP------------------

Page 12: Editor structure

Current viewing pointer

OIn viewing a document, the start of the area to be viewed is determined by the current viewing pointer.

OThis pointer is maintained by the viewing component of the editor

OThe current viewing pointer can be set or reset explicitly by the user with a travelling command or explicitly by the system as a result of the previous editing operation .

OWhen the display needs to be updated, the viewing component invoked the viewing filter.

Page 13: Editor structure

OThis component filters the document to generate the new viewing buffer based on the current viewing pointer as well as on the viewing filter parameters.

OThis parameters which is specified both by the user and system, provide information such as the number of characters needed to fill the display and how to select them from the document..

OThe editing and viewing buffers, while independent, can be related in many ways. In the simplest case..OThey are identical, the user edits the material

directly on the screen

Page 14: Editor structure

Thank you…!!!