diff --git a/tools/examples/main.py b/tools/examples/main.py new file mode 100644 index 000000000..a362bb6b3 --- /dev/null +++ b/tools/examples/main.py @@ -0,0 +1,17 @@ +import code_errors_fixer + +code = """ +def hello_world(): + print("Hello, world!") + +hello_world() +""" + +errors = code_errors_fixer.find_syntax_errors(code) + +if errors: + print("Syntax errors found:") + for error in errors: + print(error) +else: + print("No syntax errors found.")