merged libgrammar