fixed null pointer access on end of token stream by adding a special END token to the stream

fixed logical expression parser

(0) -100 -30 -10 -2 +2 +10 +30 +100 +300 tip

mercurial