]> git.phdru.name Git - sqlconvert.git/commitdiff
Make begin/end separators in demo scripts more evident
authorOleg Broytman <phd@phdru.name>
Wed, 7 Sep 2016 19:24:32 +0000 (22:24 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 7 Sep 2016 19:24:32 +0000 (22:24 +0300)
demo/demo-group.py
demo/demo-parse.py
demo/demo-process.py

index 267c2ce6bc758901d81c96ee3fb81d58f3374e94..4304f67952ac66787d07ba359250fd6043f2c0c3 100755 (executable)
@@ -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:
index 730793436740087bb51be1b7ad26da2bec4ee0be..c0abf33b889e5e178b01b74b4c6ca0781dfdfdbd 100755 (executable)
@@ -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):
index 5bce038a454f66183174ef2c7343e3292e285629..592b09433be50445e539ef4712d30bf2435fae2d 100755 (executable)
@@ -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: