embedding grammar in resource for portability