changed the definition of global variable
Write the AST based on parser and