Re: Make an editor for a language

mzraly@world.std.com (Michael S. Zraly)
4 Mar 1999 12:13:29 -0500

          From comp.compilers

Related articles
Make an editor for a language dfsgm@tin.it (Davide Marino) (1999-02-27)
Re: Make an editor for a language dwight@pentasoft.com (1999-02-28)
Re: Make an editor for a language anton@mips.complang.tuwien.ac.at (1999-03-02)
Re: Make an editor for a language maratb@CS.Berkeley.EDU (Marat Boshernitsan) (1999-03-02)
Re: Make an editor for a language heinrich@idirect.com (Kenn Heinrich) (1999-03-02)
Re: Make an editor for a language dontspamger@informatik.uni-bremen.de (George Russell) (1999-03-04)
Re: Make an editor for a language mzraly@world.std.com (1999-03-04)
| List of all articles for this month |
From: mzraly@world.std.com (Michael S. Zraly)
Newsgroups: comp.compilers
Date: 4 Mar 1999 12:13:29 -0500
Organization: The World Public Access UNIX, Brookline, MA
References: 99-02-130 99-03-005
Keywords: tools

>> [In an editor] mantain in memory all the text in this form:
>>
>> - there is a double linked list with one element for each line of text
>> with a link to the line after and before.
>
>I tried that and failed. A much better representation in my
>experience is the plain character array with a hole at the cursor.
>AFAIK emacs uses this data structure; I have also seen it described in
>several places, but don't remember where.


This is called a gap buffer. You can ask about it on comp.editors, or
pick up a copy of Craig Finseth's "The Craft of Text Editing: Emacs for
the Modern World". It's available at Amazon for $65.95.


--
Mike Zraly
mzraly@world.std.com


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.