diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-03-09 18:56:17 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-03-09 18:56:17 +0100 |
commit | f9c5ee7b3371262de64ba76f57d85e6b7fa3ae79 (patch) | |
tree | dfcef1417bd294bef826da817df586aec9a354c9 /examples/lisp-esque | |
parent | add license for lisp-esque and sleepmode (diff) | |
download | blueshift-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/lisp-esque')
-rw-r--r-- | examples/lisp-esque | 4 |
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 |