Summary
Redesign and clarify the string template / pattern generation mechanism (e.g. TemplateGenerator and template-based text generation) so the template mini-language is clearer to author and cleaner to maintain.
Background
dbldatagen supports template-driven text generation, where templates use escape sequences and special meta-characters to express patterns (digits, letters, words, ranges, repetition, alternation, etc.). As the template language has grown, the syntax and the code that parses it have become harder to read, document, and extend.
Problems
- Template syntax (escapes / meta-characters) is not always intuitive and is easy to get wrong.
- Edge cases — escaping literals, repetition counts, optional and alternation groups — are under-documented.
- The parsing/handling code is harder to maintain and extend than it should be.
Proposed direction
- Define a clear, documented grammar for the template / pattern language.
- Improve error messages for malformed templates.
- Separate parsing from generation to improve testability.
- Provide a compatibility / migration path so existing templates continue to work.
- Expand the documentation with a complete reference table and worked examples.
Summary
Redesign and clarify the string template / pattern generation mechanism (e.g.
TemplateGeneratorand template-based text generation) so the template mini-language is clearer to author and cleaner to maintain.Background
dbldatagensupports template-driven text generation, where templates use escape sequences and special meta-characters to express patterns (digits, letters, words, ranges, repetition, alternation, etc.). As the template language has grown, the syntax and the code that parses it have become harder to read, document, and extend.Problems
Proposed direction