fixed wrong hineritance
fixed missing EOF in grammar
fixed ast building