[libposix-development] printf parser
Status: Pre-Alpha
Brought to you by:
hdante
From: Henrique A. <hd...@gm...> - 2009-06-28 15:44:41
|
I'm approaching a complete printf implementation, and I've just updated a printf parser to the repository, which is already in an advanced state. It's able to parse non trivial strings, like "e %-2ld f %0#'133.45Lg g %+.hhX i\n". The actual output functions (output_unsigned, output_double, etc.) are still missing, so it doesn't print anything yet, but I'll start writing those soon. Also missing are dealing with "numbered arguments" (things like "%2$d %1$s %3$g", they allow out of order argument passing), which are harder and require a working malloc implementation. Please run the tests "printf_parser" and "printf_scanner" and check that they don't crash or give weird results. printf_scanner should return zero and printf_parser should have the following result at the moment: abcd e f g i I expect to finish this until the middle of the week, so that we have a nearly complete printf. -- Henrique Dante de Almeida hd...@gm... |