compile annotation parser (borrowed from cphalcon)