[build] rule parser: exit when wrong syntax