aboutsummaryrefslogtreecommitdiff
path: root/matlab/reader.m
diff options
context:
space:
mode:
Diffstat (limited to 'matlab/reader.m')
-rw-r--r--matlab/reader.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/matlab/reader.m b/matlab/reader.m
index 8c752c9..77dae07 100644
--- a/matlab/reader.m
+++ b/matlab/reader.m
@@ -14,7 +14,8 @@ classdef reader
atm = str2double(token);
elseif strcmp(token(1), '"')
atm = token(2:length(token)-1);
- %else if token eq 'nil'
+ elseif strcmp(token, 'nil')
+ atm = types.nil;
elseif strcmp(token, 'true')
atm = true;
elseif strcmp(token, 'false')