Source Code Task Analysis

I want to know that how do i implement AST.

See AbstractSyntaxTree