Nice Inline Syntax for DSLs
Julio César Carrascal Urquijo
jcesar at phreaker.net
Fri Feb 16 19:28:46 PST 2007
Russell Lewis wrote:
> say, "Here at the top is D code; below is the DSL." How about something
> like:
Funny that you wrote that: That's called HEREDOC syntax and it's
implemented in several scripting languages (Perl and PHP, for example):
htmlentities(<<<EOF);
<p>This is HEREDOC syntax.
EOF;
The EOF it's chosen by the programer (It could as well be any other
word) and serves as a terminator character.
More information about the Digitalmars-d
mailing list