Man accused of chasing teen with machete in court