exercism / exercism/codemirror-lang-uiua

Grammar is incorrect

Open
#3 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
0
Forks
2
PR merge metrics
No merged PRs in 30d

Description

I discovered earlier that if you turn Strict mode on in the Lezer it actually parses the grammar strictly. Without it, it guesses at what you mean if your grammar is incorrect.

If you turn strict mode one

```
export const uiuaLanguage = LRLanguage.define({
name: "uiua",
parser: parser.configure({
strict: true,
props: [
```

This line stops working:

```
😀 ← "happy"
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the TypeScript language definition and the parser.configure block shown in the issue, then inspect the grammar rule responsible for the `😀 ← "happy"` line. Reproduce the failure with strict mode enabled and determine what grammar change makes that line parse correctly while retaining strict validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
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.