So, I wrote generator_generator!
generator_generator - generate a C++ string generator from a grammar Given YACC-like and LEX-like input files, generator_generator is a Perl program that generates a C++ program that generates all strings of a user-specified length. The YACC-like language grammar file provides the grammar productions for string generation, along with optional action blocks that can perform context-sensitive checks in order to limit the generated strings. The LEX-like terminal generator file provides specifications that instruct the program how to generate strings for terminals in the grammar.This is the first public release. I will soon be moving the development to SourceForge once I find a better name. For now you can find it here.If the programmer already has a YACC or Bison parser file, he or she only needs to add "unaction" blocks to allow the recursive generator to undo the side effects of the action blocks. If the programmer already has a LEX or FLEX lexer input file, he or she only needs to remove extraneous code and replace any regular expressions with one of the terminal generator specifications.
See the README for installation details. Use "perldoc generator_generator" and "perldoc generator_generator::Tutorial" for documentation.
I'm looking for feedback on the following:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: generator_generator: generate a C++ string generator from a grammar
by merlyn (Sage) on Nov 07, 2004 at 14:13 UTC | |
by coppit (Beadle) on Nov 07, 2004 at 20:54 UTC | |
|
Re: generator_generator: generate a C++ string generator from a grammar
by dimar (Curate) on Nov 07, 2004 at 15:56 UTC | |
|
Re: generator_generator: generate a C++ string generator from a grammar
by gaal (Parson) on Nov 07, 2004 at 04:51 UTC | |
|
Re: generator_generator: generate a C++ string generator from a grammar
by halley (Prior) on Nov 09, 2004 at 18:31 UTC |