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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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)