Update Scanner and add tests

	Fix scannerError(). It now points to the bad lexeme with caret
	at the correct position.

	Test files for scanner are named ts_*.c
	Call these tests by `$ make test_scan` which feeds all the
	ts_*.c to scan driver.