helper functions for developers of lexical pragmas