Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
11
Task/XML-Output/Nim/xml-output.nim
Normal file
11
Task/XML-Output/Nim/xml-output.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import xmltree, strtabs, sequtils
|
||||
|
||||
proc charsToXML(names, remarks): XmlNode =
|
||||
result = <>CharacterRemarks()
|
||||
for name, remark in items zip(names, remarks):
|
||||
result.add(<>Character(name=name, remark.newText))
|
||||
|
||||
echo charsToXML(@["April", "Tam O'Shanter", "Emily"],
|
||||
@["Bubbly: I'm > Tam and <= Emily",
|
||||
"Burns: \"When chapman billies leave the street ...\"",
|
||||
"Short & shrift"])
|
||||
Loading…
Add table
Add a link
Reference in a new issue