Noeud:Exercises on Gperf, Noeud « Previous »:Using Gperf with the GNU Build System, Noeud « Up »:Scanning with Gperf
In this section, we address some issues left opened by the previous section, Advanced Use of Gperf.
numeral
module.
Voir Software Testing with Autotest, for all the details on designing
and implementing test suites
$ m4 -m numeral numeral(two trillion two thousand millions) =>2000001002000
This phenomenon is the same as we already observed with hundreds, see
Advanced Use of Gperf. Hint: a stack might be helpful.
$ m4 -m numeral numeral(forty-eleven) =>51
Hint: without an actual grammar (FIXME: ref to Bison.), it might not be possible, or at least, extremely clumsy.