Nimrod renamed to Nim
This commit is contained in:
parent
d05df2173b
commit
4523b29d7a
23 changed files with 90 additions and 90 deletions
|
|
@ -275,12 +275,12 @@ proc xmlConstructor(e: PNimrodNode): PNimrodNode {.compileTime.} =
|
|||
macro `<>`*(x: expr): expr {.immediate.} =
|
||||
## Constructor macro for XML. Example usage:
|
||||
##
|
||||
## .. code-block:: nimrod
|
||||
## <>a(href="http://nimrod-code.org", newText("Nim rules."))
|
||||
## .. code-block:: nim
|
||||
## <>a(href="http://nim-code.org", newText("Nim rules."))
|
||||
##
|
||||
## Produces an XML tree for::
|
||||
##
|
||||
## <a href="http://nimrod-code.org">Nim rules.</a>
|
||||
## <a href="http://nim-code.org">Nim rules.</a>
|
||||
##
|
||||
let x = callsite()
|
||||
result = xmlConstructor(x)
|
||||
|
|
@ -339,5 +339,5 @@ proc findAll*(n: XmlNode, tag: string): seq[XmlNode] =
|
|||
findAll(n, tag, result)
|
||||
|
||||
when isMainModule:
|
||||
assert """<a href="http://nimrod-code.org">Nim rules.</a>""" ==
|
||||
$(<>a(href="http://nimrod-code.org", newText("Nim rules.")))
|
||||
assert """<a href="http://nim-code.org">Nim rules.</a>""" ==
|
||||
$(<>a(href="http://nim-code.org", newText("Nim rules.")))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue