HEX lexer and parser grammar spec.