editor structure
TRANSCRIPT
Editor StructureBy: Nikhil Palyekar
Overview
OIntroductionOTypical Editor StructureOSimple relationship between
editing and viewing buffers.
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.
Typical Editor Structure Diagram
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.
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.
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.
Simple relationship between editing and viewing buffers
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
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.
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------------------
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.
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
Thank you…!!!