Edited parser2 and ast2

Tried to change bg_t so we can cast.