gscanner: Skipping number parsing



Is it possible to tell gscanner to not parse numbers?

I'm passing gscanner a string like "aoeu 7z aoeu". It gives me "aoeu"
and " " as tokens, but it gives G_TOKEN_ERROR for the "7z".

I get the desired result when I enable scan_string_sq and use the string
"aoeu '7z' aoeu", but I would rather not have to quote it.

Similarly, passing gscanner "0001" gives me the integer 1, when what I
really want is the string "0001".

Thanks!

Attachment: pgp6i7R5mmhNk.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]