Clang : What does AST (abstract syntax tree) look like?

后端 未结 3 2070
清酒与你
清酒与你 2021-02-06 01:52

Hi I am new in Compiler development, and am wondering how AST look like. I have a small section of code, and I use Clang for generating the AST. I don\'t get much information ou

3条回答
  •  猫巷女王i
    2021-02-06 01:58

    And if you want to play with GIMPLE, you could even use GCC MELT for that purpose. MELT is a high-level domain specific language to deal with GIMPLE!

    And inside compilers, the internal representation are often not trees, but somehow circular structures. In GCC, a basic block knows it gimple-s, but the gimple-s may know their basic blocks.... (it is a bit more complex, but you've got the idea).

提交回复
热议问题