Translate NameError into SyntaxError to meet prescribed API
Prefer local implementation to markerlib implementation as markerlib implementation is not as complete.