almost done with lexer

wrote some helper f'ns, getting errors in compilation