3 ms·
I don't have a problem with this. If you accidentally encode an infinite loop, you just break it on the next code change. You can memoize your token stream in a
by seanmcdirmid 13y ago
I don't have a problem with this. If you accidentally encode an infinite loop, you just break it on the next code change. You can memoize your token stream in an incremental lexer to use tokens as stable IDs: you use the same symbol for bar as you did for foo because the token/tree start position never changed; only the contents of the existing token happened to changed! This is what I do in YinYang, and it works well. Of course, to get here, you have to be incremental 100% and not use existing batch tools (or adapt them first to be incremental).
I'd be happy to share these techniques sometime.
- bronxbomber92 13y agoI'd enjoy reading.
- seanmcdirmid 13y agoOk, I'll make an effort to really write this up sometime, maybe as an SLE paper.
- lomnakkus 13y agoPlease do even if only as an informal blog post or something. :)