[good-first-issue] transpiler.ts stub — cell → TypeScript class (Fixes #24)#30
Conversation
|
Thanks for picking up #24 and for the clear PR description — the stub and
I’m closing this PR to avoid confusion. If you’d like to contribute next, issues labeled Thanks again for the contribution. |
|
Thanks again for picking up #24 — the PR description and the compile(..., shouldTranspile) integration were clear and well structured. As noted, main already includes a fuller typescript/transpiler.ts (program/cell-file transpile, handler body via transpile-handler, CLI cell build, --transpiled runtime, and parity tests), so merging this branch would duplicate work and conflict with the current tree. Closing the PR was the right call. If you'd like to contribute next, here are good follow-up tasks on main: Docs — type mapping table / transpiler usage (see examples/README.md Phase 3 section) Feel free to comment on #24 or open a new issue/PR for one of the items above — happy to review |
|
#24 is closed on main. Pick a follow-up from issues #XX–#YY (transpiler diagnostics, cell build --watch, docs, etc.) — happy to review. |
|
Closing — Thanks again @lb1192176991-lab for the clear stub and Next contributions (still open on main):
Pick one and open a fresh PR from current |
What
Added
typescript/transpiler.ts— a stub transpiler that converts.cellAST to TypeScript class output. HandlesCellDeclAST nodes and generates:@cell({ role: "...", tags: [...], lifespan: "..." })decoratorsBaseCellonSignalName(param: SignalType) { ... })emit,let,returnAlso updated
compile.tsto integrate the transpiler — added an optionalshouldTranspileparam tocompile()and exportsTranspileResult.Why
Required as the first step to enable TypeScript code generation from Cell Coding DSL. This stub handles the
CellDeclcase per issue requirements, producing output like:Testing
tsc --noEmitpasses (all imports resolved within the project)compile(source, true)