Added compilation logic for the changes in the new grammar.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>