fix parsing last token (regression)
common read file functions
parser rf 1, small tokenizer rf