IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New I got me a semi-automatic...
...parser generator. :)

Yesterday, I started to write a recursive-descent parser for my language, on the grounds that this appears to be the only way to be able to generate useful error messages on syntax errors. Recursive descent is a fairly limited technique, which makes this an inherently annoying process. So I wrote a small program that calculates the LL(1) parse tables for a given grammar and prints them out in HTML, so that I could consult it while hand-rolling the parser. It struck me that this was a tool of a class that I've rarely seen before in development: something whose purpose is not to completely automate a task, but to semi-automate it. In this case, I eliminate the manual scutwork of checking for ambiguities in my grammar, but I am still the one writing the parser.

Can anyone come up with more examples? I'll bet the sysadmins here will be able to come up with a lot, since the job involves taking essentially random human requests and convincing a machine to do them. But I could be wrong....
New Not sure what you are asking about
Do you mean tools to assist you rather than do your work for you? In that case a variety of tools ranging from grep to administrative tools to debugging dumps, all qualify.

Did you mean something else?

Confused,
Ben
Computer Science is no more about computers than astronomy is about telescopes.
-- Edsger Wybe Dijkstra (1930-2002)
New Re: Not sure what you are asking about
I'm not sure what I'm talking about, either. :) I have a vague notion that this represents a subcategory of tools, but can't put into precise language yet.

Something like grep doesn't count, because it takes a description and does some actions, and neither does a debugger doesn't count, either, because you don't give it a spec, but instead manually frob the program. But something like tsort would be much closer, because it takes a data file and produces some more data. I guess in a Unixy sense I'm thinking of things that would nearly always called as part of a pipeline, except that in this case a human is part of the pipeline. Maybe.

I need to make a list of tools to say "yes" or "no" to, so that I can determine which properties are common to the classification my brain is using.
New perhaps wrapper tools would apply
writing a quick script to wrap around a task for easier eyeballing. Like a specific search tool for a certain log file.
thanx,
bill
."Once, in the wilds of Afghanistan, I had to subsist on food and water for several weeks." W.C. Fields
New The tool that I think might fit...
Is Jeff Pinyan's [link|http://search.cpan.org/author/PINYAN/YAPE-Regex-Explain-3.011/Explain.pm|YAPE::Regex::Explain]. Feed it a regex and it returns it to you, parsed and commented, with the comments explaining what the various bits do.

In a similar vein look at [link|http://search.cpan.org/author/SIMON/Parse-RecDescent-Deparse-1.00/Deparse.pm|Parse::RecDescent::Deparse] and [link|http://search.cpan.org/author/JHI/perl-5.8.0/ext/B/B/Deparse.pm|B::Deparse].

Is that more like what you are talking about? (In these cases meant to help programmers read code.)

Cheers,
Ben
Computer Science is no more about computers than astronomy is about telescopes.
-- Edsger Wybe Dijkstra (1930-2002)
New Re: The tool that I think might fit...
Yeah, those fit, as does boxley's example of writing a log file viewer. Another good example would be HTML tidy, which finds mistakes in HTML and reports them to the user.

Somewhat perversely, it turns out that my parse-table generator wasn't very useful to me. In writing it, I internalized the rules of thumb for writing a recursive-descent parseable grammar. So I don't need it anymore! :)
New Used to do that with MS Word macros, for formatting SQL etc.
     I got me a semi-automatic... - (neelk) - (6)
         Not sure what you are asking about - (ben_tilly) - (4)
             Re: Not sure what you are asking about - (neelk) - (3)
                 perhaps wrapper tools would apply - (boxley)
                 The tool that I think might fit... - (ben_tilly) - (1)
                     Re: The tool that I think might fit... - (neelk)
         Used to do that with MS Word macros, for formatting SQL etc. -NT - (CRConrad)

Do not meddle in the affairs of wizards, for they are subtle and quick to anger.
41 ms