mirror of
https://github.com/AdaCore/langkit.git
synced 2026-02-12 12:28:12 -08:00
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.
45 lines
754 B
Plaintext
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
|