Currently, the playground displays the AST and tokens even if it contains syntax errors. It would be useful to have a separate window to display all the syntax errors in a pretty format like the one used in parser snapshots. For example:
|
1 | x: int =
| ^ Syntax Error: Expected an expression
|
Currently, the playground displays the AST and tokens even if it contains syntax errors. It would be useful to have a separate window to display all the syntax errors in a pretty format like the one used in parser snapshots. For example:
The design would be something like:
Alternative
An alternative design would be to actually have a diagnostics window similar to https://biomejs.dev/playground/ and https://pyright-play.net/.