|
On Fri, 26 Jan 2007 13:19:03 -0800 "James H H Lampert" <jamesl@xxxxxxxxxxx> wrote:
Tokenizer. Harrumph. Is that anything like a scanner? I've missed most of this thread, but I can say that I've written 2 recursive-descent parsers in ILE RPG.
A parser would be overkill for his application. IIRC, he had ~90 fields delimited by |. It just looks like aaa|bbb|||jjj|... He just needs to split the lines on |. The only problem was that strtok didn't understand empty fields. strsep does.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.