Thorsten Hindermann wrote:
There's a script (script/gperf2texi) which does a similar thing to generate a documentation file (doc/keyword.texi). A similar script
This file contains all information we need (much enough keywords :-) )
could be written to produce Pascal code. If you don't feel like doing that (or don't like writing `sed' scripts ;-), I might be persuaded to do it if I know which output format you need...
Thanx, but you don't write the sed-script :-))))
But wait. Are you going to translate this file manually? Not a good idea, I think: Keywords change sometimes (usually get added -- especially in GPC ;-), and keeping up is (a) work and (b) error-prone.
So I think, in the longer run, a sed script is the easier way -- especially since the hard part of the script (parsing the gpc.gperf file) exists already. Changing the script to a new output format (a Pascal array declaration or whatever) is not too hard...
Frank