report based on documentlayout.tex
report: match in grammar
added match and case
parsing patterns