scanning identifiers, symbols; accepting tokens; error handling