Constructing the Abstract Syntax Tree based on Grammer