How to re-parse text that has been slightly changed.
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Moe_Moe
Posted On:   Tuesday, November 12, 2002 04:16 AM

Hi I am trying to write an editor which parses java text as user writes it
in.



However reparsing the whole text everytime the user gives any input is very
slow.



Is there a way of the parser/lexer to simply check what has changed and update
the AST.



Also when there in an error in the parsing, is there are away of getting
the incomplete AST.



Thanks for you help in advance.

Re: How to re-parse text that has been slightly changed.

Posted By:   bogdan_mitu  
Posted On:   Saturday, December 14, 2002 09:01 AM

Take a look at the SATC package:

http://groups.yahoo.com/group/antlr-interest/files/satc-20020620.zip


You may need to register to the antlr group on Yahoo (and don't forget to put all the link on one line ;-).


Regards,

Bogdan

Re: How to re-parse text that has been slightly changed.

Posted By:   Terence_Parr  
Posted On:   Sunday, November 17, 2002 04:19 PM

This is called ""incremental parsing"". Look at the netbeans thread in antlr-interest@yahoogroups.com or the netbeans groups. I think they have a nice antlr way of doing this.
About | Sitemap | Contact