Initial work on HEX code generation - visitor part