Lexer now issues warning if characters are found after the terminating token ($) instead of crashing.