lexer for simple programs