AST like coding syntax. Easy upgrade!
Adam D. Ruppe via Digitalmars-d
digitalmars-d at puremagic.com
Sun Sep 6 19:35:34 PDT 2015
On Monday, 7 September 2015 at 00:34:20 UTC, Idan Arye wrote:
> Compare it to Ruby's heredoc, where the chosen terminator
> string can be used as an
> hint(https://github.com/joker1007/vim-ruby-heredoc-syntax).
Or D's heredoc strings, yes, we have them too:
http://dlang.org/lex.html (search for "heredoc" or "delimited
string" on that page)
For example:
---
void main() {
pragma(msg, q"RUBY
def foo
if a.nil?
puts :lol
end
end
RUBY");
}
---
More information about the Digitalmars-d
mailing list