On Tuesday 08 July 2008 16:40:14 Vladimir Dronnikov wrote:
> Cool!
>
> But we need to not just process continuations and comments but also to
> parse the line into some (possibly variable) amount of
> whitespaces-delimited tokens.

There's no obvious reason to mix these two issues.  A function that reads 
comments and continuations and returns the next string from the file is 
useful by itself, and you can feed the output of that into something that 
tokenizes it.

You may need different tokenizers if you have different file formats.  (If you 
ever wind up caring about bind zone files you get into multiple nested 
contexts.  Heck, even  something like "/etc/sudoers" is actually a bit more 
complicated than it looks at first glance.)

Rob
-- 
"One of my most productive days was throwing away 1000 lines of code."
  - Ken Thompson.
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to