jcubic / jcubic/lips

Parsing of recursive array literals

Open
#375 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
507
Forks
45
Avg merge
11h 22m
Merged PRs (30d)
4

Description

This code:

```scheme
(write '(1 2 #0=#(1 2 #0#)))
```

Prints:

```scheme
(1 2 #(1 2 #))
```

On the first type it threw an error about expecting parenthesis but `#` found. I was not able to repeat this error.

`DatumReference` is an internal value of the parser, and it should never be exposed.

Contributor guide

Open the contributing guide

Research direction

Start by running the Scheme example in the issue and tracing the parser's handling of recursive array literals and DatumReference values. Done means the expression parses and prints without exposing the internal DatumReference value, while avoiding the reported unexpected EOF error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.