by rektide · 5y ago · 0 comments
annoying. wish tools would free the information inside.
clang -Xclang -ast-dump=json -fsyntax-only main.c
these days. Probably not exactly the same, but still very useful.See https://clang.llvm.org/docs/Tooling.html for considerations on what approach to pick.
It's a BSD/MIT-license tool. Any idea why they did that?
second big-picture question: how hard is it to code up ast (as long as the source language is not C++)? we have lexers, parsers, PEGs, what not.