summary refs log tree commit diff stats
path: root/lib/pure/json.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2010-08-24 00:19:16 +0200
committerAraq <rumpf_a@web.de>2010-08-24 00:19:16 +0200
commite439c6b02e62837e1387e339d72fca91afd3981a (patch)
treee2b03747c77e8d7d05d7b0a947d4693dc78ee9ac /lib/pure/json.nim
parentb1ca3ab7c517e5e6b1b9f549e3572c84dad77fb3 (diff)
downloadNim-e439c6b02e62837e1387e339d72fca91afd3981a.tar.gz
bugfix: init of temps
Diffstat (limited to 'lib/pure/json.nim')
-rwxr-xr-xlib/pure/json.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pure/json.nim b/lib/pure/json.nim
index bc52fb886..0fd2a9f01 100755
--- a/lib/pure/json.nim
+++ b/lib/pure/json.nim
@@ -345,6 +345,8 @@ proc next*(my: var TJsonParser) =
   ## retrieves the first/next event. This controls the parser.
   var tk = getTok(my)
   var i = my.state.len-1
+  # the following code is a state machine. If we had proper coroutines,
+  # the code could be much simpler.
   case my.state[i]
   of stateEof:
     if tk == tkEof: