From: Oleg Broytman Date: Wed, 7 Sep 2016 19:24:32 +0000 (+0300) Subject: Make begin/end separators in demo scripts more evident X-Git-Tag: 0.0.5~4 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=0828f8d2a8cf32c7b3df3f9ee46e7de505a0ed9a;p=sqlconvert.git Make begin/end separators in demo scripts more evident --- diff --git a/demo/demo-group.py b/demo/demo-group.py index 267c2ce..4304f67 100755 --- a/demo/demo-group.py +++ b/demo/demo-group.py @@ -13,13 +13,13 @@ def group_lines(*lines): grouper.process_line(line) if grouper.statements: for statement in grouper.get_statements(): - print("----------") + print("----- -----") if find_error(statement): print("ERRORS IN QUERY") print_tokens(statement, encoding='utf-8') print() statement._pprint_tree() - print("----------") + print("-----/-----") tokens = grouper.close() if tokens: for token in tokens: diff --git a/demo/demo-parse.py b/demo/demo-parse.py index 7307934..c0abf33 100755 --- a/demo/demo-parse.py +++ b/demo/demo-parse.py @@ -11,13 +11,13 @@ from sqlconvert.process_tokens import find_error def parse_queries(*queries): for query in queries: for parsed in parse(query, encoding='utf-8'): - print("----------") + print("----- -----") if find_error(parsed): print("ERRORS IN QUERY") print_tokens(parsed, encoding='utf-8') print() parsed._pprint_tree() - print("----------") + print("-----/-----") def parse_test(_args): diff --git a/demo/demo-process.py b/demo/demo-process.py index 5bce038..592b094 100755 --- a/demo/demo-process.py +++ b/demo/demo-process.py @@ -14,14 +14,14 @@ def process_lines(*lines): grouper.process_line(line) if grouper.statements: for statement in grouper.get_statements(): - print("----------") + print("----- -----") if find_error(statement): print("ERRORS IN QUERY") process_statement(statement) print_tokens(statement, encoding='utf-8') print() statement._pprint_tree() - print("----------") + print("-----/-----") tokens = grouper.close() if tokens: for token in tokens: