Consumes characters until a character equal to the passed one is
read from the lexer and then returns the string of consumed
characters (the passed character is not consumed).
Consumes characters until a character equal to one of the
passed list is read from the lexer, and then returns the string
of consumed characters (none of the passed characters is consumed).