Files
Pierre-Marie de Rodat cf404171ea Python App: add parsing errors handling for requested units
By default, make App instances print parsing errors for all requested
units on the standard output, and let subclasses override this behavior
if needed.

Also extend the Python playground so that parsing errors fit nicely into
the prompt header.
2023-07-25 19:03:32 +00:00

45 lines
754 B
Plaintext

main.py: Starting...
== nodefaults_noargs ==
== nodefaults_args ==
Example input3:1:1-1:8: example
== defaults_noargs ==
Example input1:1:1-1:8: example
Example input2:1:1-1:8: example
== defaults_args ==
Example input3:1:1-1:8: example
== parsing_errors ==
no_such_file: Cannot read no_such_file
input4:1:9: End of input expected, got "Identifier"
Example input4:1:1-1:8: example
no_such_file: <no root node>
== parsing_errors_custom ==
no_such_file: Cannot read no_such_file
input4:1:9: End of input expected, got "Identifier"
Example input4:1:1-1:8: example
no_such_file: <no root node>
== event_handler ==
> unit input1 parsed
> unit input2 parsed
Example input1:1:1-1:8: example
Example input2:1:1-1:8: example
main.py: Done.
Done