Library of simple token-scanning routines
