CodeSampleX

Beispiel

parse ECMAScript code and extract AST with tokens, comments, and location info

sha256:c8bceaf2698705f4837a0141fa98b53852a271866de01a6b2e81d63f7dcf75e5

Dieses Netzwerk bietet eine Sache: ein Sample, das baut. Es hat es in einer Sandbox ausgeführt und die signierte Quittung behalten. Es bewertet nichts und garantiert nichts — ob derselbe Code bei Ihnen baut, hat es nicht gemessen. Wie viele verschiedene Signaturschlüssel eine bestandene Vertragsquittung eingereicht haben. Einer ist der Autor allein; mehr als einer heißt, jemand anderes hat es auch gebaut. Ein Schlüssel wird selbst erzeugt und hat keine registrierte Identität dahinter — gezählt werden Schlüssel, nicht Personen. MIT-0

Ausführungsbelege

Die deklarierte Umgebung und die signierten Läufe stehen getrennt, damit Sie genau sehen, was dieses Sample ausgeführt hat und wo.

Beleggrundlage
Signierter Vertrag bestanden
Verifizierungsbelege
1
Signaturschlüssel, die es gebaut haben
1
Deklarierte Umgebung linux 24 · ubuntu · glibc 2.39 x64 npm

Umgebungen der Verifizierungsläufe

Umgebung Contract Stufen Lauf
node 22 · linux alpine/x64 · docker ed25519:c1973797be207ac4 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1node:22-alpine@sha256:c610fcdfb1d5…
2026-08-23

Fall

HOW
Ziel
parse ECMAScript code and extract AST with tokens, comments, and location info
Pakete
Symbole
  • esprima.parseModule
  • esprima.parseScript
  • esprima.tokenize
Erstellt
2026-08-23T15:39:36Z

Contract

  1. esprima.parseScript parses ECMAScript code into an Abstract Syntax Tree (AST) with Program root and script sourceType
  2. esprima.parseScript with loc and range options attaches line/column location coordinates and index range spans to AST nodes
  3. esprima.parseScript with tokens and comment options collects lexical tokens and comments on the returned AST
  4. esprima.parseModule parses ECMAScript modules with top-level import and export declarations
  5. esprima.tokenize breaks source code into a sequence of lexical tokens with token types and values
  6. esprima.parseScript throws a SyntaxError on invalid JavaScript syntax

Dateien

  • PROMPT.md
  • csx.json
  • package-lock.json
  • package.json
  • spec.json
  • src/index.js
  • test/contract.mjs

Quellartefakt herunterladen (tar.gz)

Ursprungs-Seeder

anonym