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

Let's write a simple JavaScript pre-processor! ;-)

Aperta
#199 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
javascript
Ambito
compilers

Direzione di ricerca

The issue names no repository files, tests, or entry points. Start by identifying a suitable JavaScript parser and determining how its parse tree can be modified and serialized; done would require a working pre-processor covering the requested scan, parse, transformation, and serialization flow.

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

Descrizione

This has been a long-term interest, and now I actually want to create the code.

It's a pre-processor. It takes as input arbitrary JavaScript code as input.

  1. It runs it through a lexical scanner, and a parser, and out the other end comes a parse tree.

  2. We make a few changes to the parse tree.

  3. We serialize the parse tree back into JavaScript source text.

And that's it!

I've looked at several open source JS parser projects but haven't found code that does this simply to just do my stuff and get back to other projects. I don't want to get immersed in the processor. Hope this makes sense.

Any help much appreciated! 💥

PS: I have experience with YACC and scanners. I've also written and maintained a scripting environment, so I'm fairly knowledgable about parsing, but am not familiar with any of the JS projects.

Lingua principale
HTML
Stelle
134
Fork
10
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

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 scripting/Scripting-News

Tutte le issue di scripting/Scripting-News

Issue simili

Altre issue su Compilers

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.