logoalt Hacker News

Octoth0rpelast Sunday at 2:38 PM2 repliesview on HN

I've been playing with a very basic compiler for a language that looks a bit like go -> llvm ir, but I'm finding myself constantly revising my AST implementation as I progressively add more things that it needs to represent. Is anyone aware of any kind of vaguely standardized AST implementation used by more than one project? I've been searching this morning for one and am coming up empty. My thinking is that if I can find some reasonably widely used implementation, then hopefully that implementation has thought out lots of the corner cases that I haven't gotten to yet.


Replies

znkrlast Sunday at 2:40 PM

LISP ;-)

show 2 replies
emptysealast Sunday at 2:49 PM

Ruff’s ast is used by Ruff, Ty, and Pyrefly

show 1 reply