parsing algorithm

parser for example CFG