A lot of improvements

Using ifstream pointer in Loc instead of 'pos' and 'end', using char
equivalences if possible for 'accept' and 'expect'.