created rtf parser with sam and gen