以下在ceylon/ceylon.ast項目中找到的示例顯示瞭如何編程構造一些AST並使其由錫蘭類型檢查器(com.redhat)進行類型檢查。 ceylon.compiler.typechecker.TypeChecker):如何將從ceylon.ast獲得的編譯單元提供給ceylon編譯器
什麼會隨後被推薦的方法要與類型化的語法樹稱爲編譯類型化語法樹 - 考慮到編譯單元的文件通常給出而不是類型化的語法樹(從ceylon.ast項目)到類型檢查器?
此問題與The Ceylon Typechecker: How to obtain the typed syntax tree?有關。