Add join, foreach to grammer