<expr=...> => <ref=...> for auto-dereferencing; updated grammar generator