From f9c5ee7b3371262de64ba76f57d85e6b7fa3ae79 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 9 Mar 2014 18:56:17 +0100 Subject: fix parsing into tree MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- examples/lisp-esque | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/lisp-esque') 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 -- cgit v1.2.3-70-g09d2