Browse Prior Art Database

Spell Checking in a Development Edit System

IP.com Disclosure Number: IPCOM000013184D
Original Publication Date: 2000-Jul-01
Included in the Prior Art Database: 2003-Jun-17
Document File: 3 page(s) / 48K

Publishing Venue

IBM

Abstract

Disclosed is a mechanism to incorporate a spell checking facility in an edit system for software development (i.e., for editing source code), that works in conjunction with a live parser to scan (a) the comments, and (b) other language constructs, such as string literals, and to provide immediate spell checking feedback to the developer. The language-sensitive spell checking functionality is integrated with the parser, thereby taking advantage of the document structure/syntax data already available in the parser, and eliminating function duplication. An edit system implementing this disclosure is depicted in the figure below.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 47% of the total text.

Page 1 of 3

Spell Checking in a Development Edit System

Disclosed is a mechanism to incorporate a spell checking facility in an edit system for software development (i.e., for editing source code), that works in conjunction with a live parser to scan (a) the comments, and (b) other language constructs, such as string literals, and to provide immediate spell checking feedback to the developer. The language-sensitive spell checking functionality is integrated with the parser, thereby taking advantage of the document structure/syntax data already available in the parser, and eliminating function duplication. An edit system implementing this disclosure is depicted in the figure below.

=================

| EDIT SYSTEM |
=================

^

|

v

-----------------

| COMMON PARSER |
-----------------

^^

||

               vv
----------------- --------------------
| LANGUAGE | | SPELL CHECKER |
DICTIONARIES

    | PARSER || --------------------
USER ADDENDA

-----------------||

-----------------|

-----------------

Common parser is a generic parser class of the edit system, extended by language-specific parsers attached to the edit system via file-type associations. A language parser first gets control after a document has been loaded in the edit system (to perform an initial total parse), and is subsequently called when changes are made to the document (incremental parse). The language parser analyzes the document, and marks structural elements in it at various degrees of detail. For example, text elements which contain comments may be marked with CLASS_COMMENT, method-signature elements with CLASS_METHOD, etc. The text itself is further marked with styles, such as identifiers, string literals, constants, etc., which show the token type and provide display attributes.

The information set by the language parser is used by the edit system to display the document in a view colourized filtered sections of the source, a bounded segment of the source, etc.), by other tools attached to the edit control to get detailed information about the structure of the document in order to carry out context-sensitive actions, and by the parser itself as reference points for incremental parsing and its other operations.

The spell checker is attached to the editor as an external command

1

Page 2 of 3

and the communication with the spell checker is under the control of the common parser associated with the document in the edit system. The spell checker performs a total spell check of the entire document when the document is loaded in the edit system, and afterwards incremental spell checking on the changes done in the document. The language parsers extend the access of the spell checker to the document through the common parser, and provide it with the text of the document's comments and other language constructs appropriate for spell checking, as further described below. The following are some of the operations carried out during the total and incremental spell checking of the document:

Blocks of comme...