Add rules grammar