Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
19
Task/Here-document/Genie/here-document.genie
Normal file
19
Task/Here-document/Genie/here-document.genie
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
[indent=4]
|
||||
/*
|
||||
Here documents, as template and verbatim strings in Genie
|
||||
valac heredoc.gs
|
||||
*/
|
||||
init
|
||||
test:string = "Genie string"
|
||||
|
||||
var multilineString = """
|
||||
this is a $test
|
||||
"""
|
||||
|
||||
var templateString = @"
|
||||
this is a $test template
|
||||
with math for six times seven = $(6 * 7)
|
||||
"
|
||||
|
||||
stdout.printf("%s", multilineString)
|
||||
stdout.printf("%s", templateString)
|
||||
Loading…
Add table
Add a link
Reference in a new issue