×

Undo/redo technique for token-oriented representation of program code

  • US 7,386,834 B2
  • Filed: 06/28/2002
  • Issued: 06/10/2008
  • Est. Priority Date: 06/28/2002
  • Status: Active Grant
First Claim
Patent Images

1. A method of providing undo operation support in an edit buffer, the method comprising:

  • representing the edit buffer as a doubly-linked list of nodes for a tokenized program representation, each node corresponding to a respective lexical token in the tokenized program representation; and

    maintaining, as a side-effect of operations that modify contents of the list, an ordered set of undo objects that identify at least respective opposing-end nodes of respective sublists of one or more lexical tokens in the tokenized program representation corresponding to respective substrings inserted into the list by respective insert-type operations, wherein at least one of the sublists comprises different opposing end nodes stored non-contiguously and each of the sublists is a doubly linked list.

View all claims
  • 3 Assignments
Timeline View
Assignment View
    ×
    ×