Add PrimitiveVisitor for generating if else statements.

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