Thinking of using TypeScript compiler API to generate AST nodes from my language, Kopi

1 view
Skip to first unread message

Mike Austin

unread,
Mar 1, 2026, 12:12:14 PM (6 days ago) Mar 1
to PiLuD
I like the syntax of my language, Kopi, but there is no type-checking and I don't want to have to write that :) It's also slower since it has it's own VM instead of being converted source to source.


I just found how to generate TypeScrpt AST nodes programatilly, which should make it much, much easier to translate source without having to do clunky things.

Raoul Duke

unread,
Mar 1, 2026, 1:22:30 PM (5 days ago) Mar 1
to pi...@googlegroups.com
oh! i kind of would like that, too. i feel sad i didn't see good stable ast apis when i looked? i do wish that any mainstream language should, ethically, expose a well maintained ast api. 

(currently generating .ts syntax and then calling tsc. sort of silly vs. going straight to AST. although for T2 i think maybe it is a feature to go via .ts that can be inspected. e.g. T2 could just be used for macros for TS projects.  https://github.com/raould/t2lang)

Reply all
Reply to author
Forward
0 new messages