define constants and lexer helper functions