New parser base class

Grammars might be too much complex for what I need, created a parser
base class for retaining current stream position and storing current
token.
Need to adapt tokenizer and create XML parser with it