Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Temporal: for/if/loop/return nodes stamped with the next statement's line (what is i at N answers for a line that never assigns i)

Aperta
#1,382 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c
Ambito
compilers

Direzione di ricerca

Start in the parser and temporal tracing code, then run the existing temporal tests around line-based lookup and trace tape generation. Add coverage for for/if/loop/return nodes, indexed/field/destructuring stores, and the end-of-file stamp; use the Done when checklist and docs/TRACE.md to verify the resulting behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:observer kind:silent-wrong

Found by the builder on #1377. This predates it and exists on base too.

The parser stamps if/loop/for/return nodes with the line of the token that FOLLOWS them, not their own line. For a for loop variable this is silent-wrong: what is i at 4 returns 2 when line 4 never assigns i.

Related, from the same survey:

  • Every trace tape starts with a spurious L stamp for the line after the end of the file.
  • Stores other than a plain assignment (d[k] is v, d.k is v, destructuring) are stamped differently from plain assignment.
  • A call assignment is recorded under the callee's last line.

The filing rule for multi-line statements is #1381's decision. This issue is about nodes stamped with a line that is not theirs at all.

Done when

  • for/if/loop/return nodes carry their own keyword's line. A temporal test shows what is i at N returns null (or the prior value) for a line that does not assign i.
  • The spurious end-of-file L stamp is gone, or explained in docs/TRACE.md.
  • Indexed, field and destructuring stores are stamped by the same rule as plain assignment. Covered by a test.
Lingua principale
C
Stelle
3
Fork
7
Merge medio
4h 7m
PR unite (30g)
112

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di InauguralSystems/EigenScript

Tutte le issue di InauguralSystems/EigenScript

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.