Sketch‑Programming (LLM Transpiler)
dev.to·1d·
Discuss: DEV
🌈Gradual Languages
Preview
Report Post

repo

Where It Started

It all began with yet another crazy idea: trying to write my own programming language, compiler, or transpiler…

That’s what happens when you get tired of forms and buttons.

Writing a compiler from scratch is pretty boring.

You already know the result, and what lies ahead is routine work: parsing, building an AST, and so on.

I got bored quickly.

Then I remembered Babel. I vaguely know its internals and am familiar with Babylon (now @babel/parser).

Roughly speaking, it parses code and produces an AST. We can extend JavaScript with features from newer standards not yet supported by all browsers.

Some people call it a compiler, others a transpiler — at this point, it’s mostly a matter of taste…

Similar Posts

Loading similar posts...