aboutsummaryrefslogtreecommitdiff
path: root/matlab/reader.m
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2015-02-08 13:18:08 -0600
committerJoel Martin <github@martintribe.org>2015-02-08 23:51:22 -0600
commit6d12affa8bc91a6662e8d4bdcc66a6963b77e947 (patch)
tree644d5a482081600faafc09e679fb1006796de659 /matlab/reader.m
parentd6624158bdf41e047ad8d0a9942238dc80649901 (diff)
downloadmal-6d12affa8bc91a6662e8d4bdcc66a6963b77e947.tar.gz
mal-6d12affa8bc91a6662e8d4bdcc66a6963b77e947.zip
matlab: all step4 except optional.
Diffstat (limited to 'matlab/reader.m')
-rw-r--r--matlab/reader.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/matlab/reader.m b/matlab/reader.m
index 77dae07..7053aef 100644
--- a/matlab/reader.m
+++ b/matlab/reader.m
@@ -14,6 +14,8 @@ classdef reader
atm = str2double(token);
elseif strcmp(token(1), '"')
atm = token(2:length(token)-1);
+ atm = strrep(atm, '\"', '"');
+ atm = strrep(atm, '\n', char(10));
elseif strcmp(token, 'nil')
atm = types.nil;
elseif strcmp(token, 'true')