effekt-lang / effekt-lang/effekt
Unexpected parsing behavior with semicolons
Open
area:parser/lexer
- Dominant language
- Scala
- Stars
- 469
- Forks
- 41
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 23
Description
We have observed in #1074 that the parsed tree changes (modulo spans) depending on semicolons, which should not happen in these cases.
The cases giving different trees on `parseProgram`:
```scala
namespace list;
namespace internal;
val x = 4
val y = 5
```
vs.
```scala
namespace list
namespace internal
val x = 4
val y = 5
```
vs.
```scala
namespace list
namespace internal
val x = 4
val y = 5;
```
which can be reproduced by `(progA.defs zip progB.defs).foreach(assertEqualModuloSpans)`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.