Re: Make an editor for a language

Marat Boshernitsan <maratb@CS.Berkeley.EDU>
2 Mar 1999 14:08:08 -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: Marat Boshernitsan <maratb@CS.Berkeley.EDU>
Newsgroups: comp.compilers
Date: 2 Mar 1999 14:08:08 -0500
Organization: University of California, Berkeley
References: 99-02-130
Keywords: tools

"Davide Marino" <dfsgm@tin.it> writes:


> I need make an editor for a programming language. It would be capable
> of color tokens according their lexical value. ...


Take a look at Tim Wagner's thesis:


Tim A. Wagner. Practical Algorithms for Incremental Software Development
Environments Ph.D. Dissertation, Report No. UCB//CSD-97-946


http://sunsite.berkeley.edu:80/Dienst/UI/2.0/Describe/ncstrl.ucb%2fCSD-97-946?abstract=


I had used his incremental lexing algorithm to construct an editor
that does just what you describe -- relex at each keystroke. His
algorithm is capable of driving any batch lexer that provides a little
support for maintaining lexer states; Tim used flex and I used JavaCC.


As far as representation goes, I suggest you use linked list of tokens
as your data structure.


Marat.


Post a followup to this message

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