added grammar support for context predicates