summary refs log blame commit diff stats
path: root/tests/cpp/t6986.nim
blob: ffd277adb04f91dabc9972eaa7634d19bf621778 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                                          
discard """
  targets: "cpp"
  action: "compile"
"""

import sequtils, strutils


let rules = toSeq(lines("input"))
  .mapIt(it.split(" => ").mapIt(it.replace("/", "")))
  .mapIt((it[0], it[1]))


proc pp(s: string): auto =
  toSeq(lines(s)).mapIt(it.split(" => ").mapIt(it.replace("/", ""))).mapIt((it[0], it[1]))
echo pp("input")