Re: [RBMetacode] Lexer thoughts
Status: Planning
Brought to you by:
jstrout
From: Seth V. <se...@bk...> - 2008-02-21 15:49:02
|
On Feb 21, 2008, at 9:30 AM, Joe Strout wrote: > - should the lexer skip the rest of the line after detecting an error? > > And actually, maybe we don't need the second one, since whatever's > invoking the lexer could easily watch for an error flag itself, and > call the lexer's SkipToNextLine (or whatever) method if that's what > it wants to do. > My vote's on leaving it up to the calling code to take whatever action makes sense. It may be different depending on what the lexer is being used for, so why clutter the interface? Seth |