thallo.nim 340 B

1234567891011121314151617181920212223242526272829
  1. discard """
  2. output: "Hello World"
  3. """
  4. const str = "Hello World"
  5. echo str
  6. # Splitters are done with this special comment:
  7. #!EDIT!#
  8. discard """
  9. output: "Hello World B"
  10. """
  11. const str = "Hello World"
  12. echo str, " B"
  13. #!EDIT!#
  14. discard """
  15. output: "Hello World C"
  16. """
  17. const str = "Hello World"
  18. var x = 7
  19. if 3+4 == x:
  20. echo str, " C"