Dashrep is a versatile descriptive programming language that recognizes hyphenated phrases, such as rectangle-outline-attention-begin, and recursively expands the phrases to generate an HTML web page, an XML file, a JavaScript program, a boilerplate-based document, a template-based email message, or any other text-based content.
See www.Dashrep.org for details about the Dashrep language.
Although Dashrep code is not directly executable, it can generate executable code. Although it does not directly define loops, it generates lists in which any delimited (using commas and/or spaces) list of text strings (including integers) specifies the unique values for the list items. Although the Dashrep language does not directly implement a branching structure, the translated code can be completely changed at any level (including within lists) based on parameterized hyphenated phrases such as [-template-for-move-proposal-link-for-action-[-output-requested-action-]-].
The Dashrep language has been used to convert text files into MML- and XML-format files (for two books, The Creative Problem Solver's Toolbox and Ending The Hidden Unfairness In U.S. Elections), specify dynamically generated HTML pages (at www.VoteFair.org and www.NegotiationTool.com), generate JavaScript code (that Adobe Illustrator executed to generate vector graphics for use in the book Ending The Hidden Unfairness In U.S. Elections), generate invoices and packing slips, expand boilerplate-like text, and more.
The design goals for the Dashrep language were:
- Provide a convenient way to move descriptive code out of executable code.
- Keep it simple, and keep it flexible.
- Make the language speakable. (This characteristic is useful for various purposes, including circumventing keyboard-induced repetitive-stress injury, and using microphone-equipped mobile devices.)
- Note about Version 2 and later: These versions, if they are from GitHub instead of CPAN, can be used without the CPAN envioronment. The GitHub version only needs the Perl interpreter, which means that on the Windows operating system only the perl.exe and perl512.dll and libgcc_s_sjlj-1.dll files (or their more-recent equivalents) are needed.
SYNOPSIS
The following sample code executes the Dashrep-language actions specified in the standard input file.
use Language::Dashrep;
&Dashrep::dashrep_linewise_translate( );
Language::Dashrep is a Perl module also supports direct access to functions that define Dashrep phrases, expand text that contains Dashrep phrases, and more.
Product's homepage
Requirements:
· Perl