|Make an editor for a language firstname.lastname@example.org (Davide Marino) (1999-02-27)|
|Re: Make an editor for a language email@example.com (1999-02-28)|
|Re: Make an editor for a language firstname.lastname@example.org (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 email@example.com (Kenn Heinrich) (1999-03-02)|
|Re: Make an editor for a language firstname.lastname@example.org (George Russell) (1999-03-04)|
|Re: Make an editor for a language email@example.com (1999-03-04)|
|From:||Marat Boshernitsan <maratb@CS.Berkeley.EDU>|
|Date:||2 Mar 1999 14:08:08 -0500|
|Organization:||University of California, Berkeley|
"Davide Marino" <firstname.lastname@example.org> 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
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.
Return to the
Search the comp.compilers archives again.