Output codegenerated JavaScript
Nadie ha tomado este issue todavía.
- #19 de @copilot-swe-agent — cerrado sin fusionar
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Now the parser generator codegens JavaScript code and immediately eval()s it. Add ability to output generated JavaScript code to text.
- Ability to write generated code to text.
- Ability to write linked dependencies to text.
- Ability to inline statically literal value dependencies.
- Do not link raw functions, instead create a shared library of functions. Link it during JIT, but text dump have a version which can be printed to text. I.e. create a "shared library" of functions, which are linked during JIT or dumped to text when full JavaScript code is generated.
Create a shared library, which is statically exported and linked for JIT, but dumped to text in full JavaScript text code generation:
export const sharedLibrary = () => {
const scrub = () => {};
class Pattern {}
class CstMatch {}
class LeafCstMatch {}
// ...
return {
scrub,
Pattern,
CstMatch,
LeafCstMatch,
};
};
// For JIT compiler likage:
export const library = sharedLibrary();
// For full code dump:
export const sharedLibraryText = sharedLibrary.toString();
- Add tests which generate JavaScript parser code, then run it through
eval()and sucessfully parse inputs.
- Lenguaje dominante
- TypeScript
- Estrellas
- 3
- Forks
- 0
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de streamich/jit-parser
-
JSON Grammar SpecificationAbierto
streamich/jit-parser#20 · 1 reacción · 1 asignado ·
-
Pluggable ASTAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
streamich/jit-parser#13 ·
-
Nested grammar nodesAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
streamich/jit-parser#12 ·
-
Context sensitivityAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
streamich/jit-parser#11 ·
-
AutofixingAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
streamich/jit-parser#10 ·
Todos los issues de streamich/jit-parser
Issues similares
-
affected/v17 affected/v18 area/frontend type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
umbraco/Umbraco-CMS#24186 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
better-auth/better-auth#11723 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
area: docs difficulty: easy documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Worker-Erstellung bricht langsame Git-Worktree-Checkouts nach 20 Sekunden abPosiblemente ocupada @KajoVanBuyten la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
AgentSystemLabs/agent-office#367 ·
Los mantenedores suelen responder en 1 día