summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-03-09 18:56:17 +0100
committerMattias Andrée <maandree@operamail.com>2014-03-09 18:56:17 +0100
commitf9c5ee7b3371262de64ba76f57d85e6b7fa3ae79 (patch)
treedfcef1417bd294bef826da817df586aec9a354c9 /examples
parentadd license for lisp-esque and sleepmode (diff)
downloadblueshift-f9c5ee7b3371262de64ba76f57d85e6b7fa3ae79.tar.gz
blueshift-f9c5ee7b3371262de64ba76f57d85e6b7fa3ae79.tar.bz2
blueshift-f9c5ee7b3371262de64ba76f57d85e6b7fa3ae79.tar.xz
fix parsing into tree
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/lisp-esque4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/lisp-esque b/examples/lisp-esque
index 6c9dc2e..f287a2c 100644
--- a/examples/lisp-esque
+++ b/examples/lisp-esque
@@ -51,14 +51,14 @@ def parse(code):
'''
Parse the .conf file and return it as a tree
- @param data:str The .conf file content to parse
+ @param code:str The .conf file content to parse
@return :list<↑|str> The root node in the tree
'''
stack, stackptr = [], -1
comment, escape, quote, buf = False, False, None, None
col, char, line = 0, 0, 1
- for c in range(data):
+ for c in code:
if comment:
if c in '\n\r\f':
comment = False