effekt-lang / effekt-lang/effekt

Unexpected parsing behavior with semicolons

Open
#1,107 2 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.