Inline some helper functions for lexer