aboutsummaryrefslogtreecommitdiff
path: root/cs/printer.cs
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2014-04-07 00:17:13 -0500
committerJoel Martin <github@martintribe.org>2014-04-07 00:17:13 -0500
commitafdf531eba459a7a7b6505b037dbe48a363c2c79 (patch)
treeb899e21b373ac8338756140eaf7afcb399d46bb9 /cs/printer.cs
parentb18969c0b8d47d67d4b73b5b20742a0bc3179e72 (diff)
downloadmal-afdf531eba459a7a7b6505b037dbe48a363c2c79.tar.gz
mal-afdf531eba459a7a7b6505b037dbe48a363c2c79.zip
CS: add step4_if_fn_do
Diffstat (limited to 'cs/printer.cs')
-rw-r--r--cs/printer.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/cs/printer.cs b/cs/printer.cs
index 7ee5c03..b5e8c63 100644
--- a/cs/printer.cs
+++ b/cs/printer.cs
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
+using System.Text.RegularExpressions;
using Mal;
using MalVal = Mal.types.MalVal;
using MalList = Mal.types.MalList;
@@ -33,12 +34,14 @@ namespace Mal {
return mv.ToString(print_readably);
}
- /*
public static string _pr_str_args(MalList args, String sep,
bool print_readably) {
- return join(args.getList(), sep, print_readably);
+ return join(args.getValue(), sep, print_readably);
+ }
+
+ public static string escapeString(string str) {
+ return Regex.Escape(str);
}
- */
}
}