unison/unison-src/transcripts/generic-parse-errors.output.md

148 lines
1.8 KiB
Markdown
Raw Permalink Normal View History

2024-03-13 21:52:29 +03:00
Just a bunch of random parse errors to test the error formatting.
``` unison
2024-03-13 21:52:29 +03:00
x =
foo.123
```
``` ucm
2024-03-13 21:52:29 +03:00
Loading changes detected in scratch.u.
I got confused here:
2 | foo.123
I was surprised to find a 1 here.
2024-03-13 22:14:31 +03:00
I was expecting one of these instead:
2024-03-13 21:52:29 +03:00
* end of input
* hash (ex: #af3sj3)
* identifier (ex: abba1, snake_case, .foo.bar#xyz, .foo.++#xyz, or 🌻)
```
``` unison
2024-03-13 21:52:29 +03:00
namespace.blah = 1
```
``` ucm
2024-03-13 21:52:29 +03:00
Loading changes detected in scratch.u.
2024-08-16 22:25:59 +03:00
I got confused here:
2024-03-13 21:52:29 +03:00
1 | namespace.blah = 1
2024-08-16 22:25:59 +03:00
I was surprised to find a = here.
I was expecting one of these instead:
* ability
* bang
* binding
* do
* false
* force
* handle
* if
* lambda
* let
* newline or semicolon
* quote
* termLink
* true
* tuple
* type
* typeLink
* use
2024-03-13 21:52:29 +03:00
```
``` unison
2024-03-13 21:52:29 +03:00
x = 1 ]
```
``` ucm
2024-03-13 21:52:29 +03:00
Loading changes detected in scratch.u.
I found a closing ']' here without a matching '['.
1 | x = 1 ]
```
``` unison
2024-03-13 21:52:29 +03:00
x = a.#abc
```
``` ucm
2024-03-13 21:52:29 +03:00
Loading changes detected in scratch.u.
I got confused here:
1 | x = a.#abc
I was surprised to find a '.' here.
2024-06-27 21:37:22 +03:00
I was expecting one of these instead:
* and
* bang
* do
* false
* force
* handle
* if
* infixApp
* let
* newline or semicolon
* or
* quote
* termLink
* true
* tuple
* typeLink
2024-03-13 21:52:29 +03:00
```
``` unison
2024-03-13 21:52:29 +03:00
x = "hi
```
``` ucm
2024-03-13 21:52:29 +03:00
Loading changes detected in scratch.u.
I got confused here:
2 |
2024-03-13 21:52:29 +03:00
I was surprised to find an end of input here.
2024-03-13 22:14:31 +03:00
I was expecting one of these instead:
2024-03-13 21:52:29 +03:00
* "
* \s
* literal character
```
``` unison
2024-03-13 21:52:29 +03:00
y : a
```
``` ucm
2024-03-13 21:52:29 +03:00
Loading changes detected in scratch.u.
I got confused here:
2 |
2024-03-13 21:52:29 +03:00
I was surprised to find an end of section here.
2024-03-13 22:14:31 +03:00
I was expecting one of these instead:
2024-03-13 21:52:29 +03:00
* ->
* newline or semicolon
```