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:
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):
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: