Output codegenerated JavaScript
まだ誰も着手していません。
- #19 @copilot-swe-agent による — マージされずにクローズ
評価
この issue はまだ評価されていません。
説明
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.
- 主要言語
- TypeScript
- スター
- 3
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
streamich/jit-parser のほかの issue
-
streamich/jit-parser#20 · リアクション 1 件 · 担当者 1 名 ·
-
Pluggable ASTオープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
streamich/jit-parser#13 ·
-
Nested grammar nodesオープン
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
streamich/jit-parser#12 ·
-
Context sensitivityオープン
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
streamich/jit-parser#11 ·
-
Autofixingオープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
streamich/jit-parser#10 ·
streamich/jit-parser の issue をすべて見る
似ている issue
-
Create/import wallet form shows raw "password must be at least 1 characters" instead of the translated message対応中かも @CapThunder19 が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
joinmarket-webui/jam#1538 ·
メンテナーはふだん 1 日以内に返信
-
t0ggles
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
nolimits4web/swiper#8240 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
modelcontextprotocol/inspector#2723 ·
メンテナーはふだん 1 日以内に返信
-
status:approved type:bug
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信