str_lit.matzo 334 B

123456789101112131415
  1. (* basic string literals *)
  2. puts 'foo' "foo";
  3. (* string literals with spaces *)
  4. puts 'foo bar baz' "foo bar baz";
  5. (* string literals with escaped quotes *)
  6. puts
  7. 'won\'t you'
  8. "quoth the raven \"nevermore\"";
  9. (* string literals with escaped newlines *)
  10. puts 'this\nthat' "one\ntwo";
  11. (* various escapes *)
  12. puts '\n\t\r' "\n\t\r";