Mark Probert wrote:
Can I interest you in one of the Coco/R versions?
Either one that generates extensions (semantics and actions in C) (contact me), or Ryan Davis's pure Ruby version
(zenspider projects | software projects | by ryan davis)
Thanks Mark (and others who replied to my request).
I'll tell you what I'm looking to do, and maybe you can tell me what would work.
I've become annoyed with the output of "make". I've recently been compiling a set of things that takes a really long time to do. Make enters about 500 directories, and gcc is invoked at least 5000 times. The output from this process is nearly useless.
I'm thinking of making something to which I can pipe the output of this process, so that I can make sense of what happened.
To do that, I want to parse this:
gcc -D__DEBUG__ -I../include -I/foo/bar/path -funroll-loops -o foo foo.c
to this:
#<GCCInvocation:0x4029a1f4 @lang_opts=["unroll-loops"], @includes=["../include", "/path/to/foo"], @defines=["DEBUG"], @sources=["foo.c"], @output="foo">
In other words, I want to make an object with the parsed commandline.
Once I can do that, I could hopefully make a GUI that printed something simple for each line of output (like a dot), but if you wanted more details you could expand the dot, and see the information in a clearly presented way, like maybe:
gcc building foo:
sources: foo.c
defines: DEBUG
include paths: ../include, /path/to/foo
language options: unroll-loops
I chose racc because I pretty much understand bison, but I'm willing to use anything that gets me from A to B relatively easily (as long as it can keep up with make's output)
Ben