抽象句法樹abstract syntax tree)係程式語言理論嘅分析當中成日用到嘅一種樹狀圖,用抽象化嘅方式嚟表達一段源碼

呢樖抽象句法樹表達嘅源碼(輾轉相除法)如下:
while b ≠ 0
if a > b
a := a − b
else
b := b − a
return a}}