increpare / increpare/PuzzleScript

bad error if parenthetical inside rule

Open
#1,128 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
185
PR merge metrics
No merged PRs in 30d

Description

https://www.puzzlescript.net/editor.html?hack=daad222319fd2295732de7a5bf8b9568

[ > Player | Crate (hello) ] -> [ > Player | > Crate ] 

produces errors

line 78 : A rule has to have an arrow in it. There's no arrow here! Consider reading up about rules - you're clearly doing something weird
line 78 : This rule refers to nothing. What the heck? :O

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the linked PuzzleScript editor case with the rule shown in the issue, then trace how rules containing parenthetical text are parsed and how the reported errors are generated. Done means this valid rule no longer produces the misleading missing-arrow and refers-to-nothing errors.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.