semantic: Add needed util and fix parse up to first bug.