Generate code for string/char/boolean ast nodes