×

System and method for horizontal alignment of tokens in a structural representation program editor

  • US 5,857,212 A
  • Filed: 09/12/1996
  • Issued: 01/05/1999
  • Est. Priority Date: 07/06/1995
  • Status: Expired due to Fees
First Claim
Patent Images

1. In a computer program editor configured to edit a computer program represented as a stream of tokens from a text flow representation display of said program, a method for forcing horizontal alignment between token positions in associated lines of edit text, the method comprising the following steps:

  • (a) displaying each line of said computer program as it is entered by a user, wherein a displayed line represents a sequence of tokens and visual whitespace separating adjacent tokens;

    (b) defining at least a first cursor-positionable alignment marker at a first insertion point in said stream corresponding to a user-selected first inter-token position in a first said displayed line, and defining at least a second cursor-positional alignment marker at a second insertion point in said stream corresponding to a user-selected second inter-token position in a second said display line of said computer program, said first display line and said second display line being associated with one another, each said alignment marker providing user interactability with a said displayed line;

    (c) prettyprint displaying said first displayed line and said second displayed line such that said first inter-token position and said second inter-token position are forced into horizontal alignment with each other;

    wherein a token adjacent said first inter-token position and a token adjacent said second inter-token position are themselves displayed in relative horizontal alignment; and

    (d) maintaining boundaries between each said token and updating each said insertion position while said user edits a said line of said computer program as though said user were editing a said line of said computer program with a text editor.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×