[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Incremental parsing with LPEG
- From: Greg <tghill@...>
- Date: Wed, 1 Jun 2011 12:42:36 +0000 (UTC)
Is it possible to use LPEG to create an incremental parser.
I'm trying to add syntax highlighting to an in-house lua editing suite.
Currently I parse the entire file after every keystroke which is fine on small
files but really slows down with larger files.
I'd like to be able to just reparse the line that has changed or possibly the
next couple of lines, instead of the whole document. Any suggestions?